help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: << in shell-script mode


From: Doug Lewan
Subject: RE: << in shell-script mode
Date: Mon, 19 Oct 2015 14:23:45 +0000

Mr. Moreton's answer is the right one. Here's how I do it in my .emacs:

(eval-after-load "sh-script"
  '(add-hook 'sh-mode-hook '(lambda () (sh-electric-here-document-mode 0))))

-- 
,Doug
Douglas Lewan
Shubert Ticketing
(201) 994-4335

Nonfirstorderizability. It's a thing.


> -----Original Message-----
> On
> Behalf Of Andy Moreton
> Sent: Saturday, 2015 October 17 07:09
> Subject: Re: << in shell-script mode
> 
> On Sat 17 Oct 2015, Chris F.A. Johnson wrote:
> 
> > On 2015-10-17, Barry Margolin wrote:
> >> In article <p7p8fc-2dm.ln1 @ chris.tor>,
> >>  "Chris F.A. Johnson"  wrote:
> >>
> >>> How do I prevent emacs from inserting a here document:
> >>> <<EOF
> >>>
> >>> EOF
> >>> whenever I type <<
> >>> ?
> >>
> >> Type C-q before the second < to insert it literally.
> >
> > Why should I have to do that?
> 
> This is controlled by sh-electric-here-document-mode, so disable
> that minor mode to disable the automatic here document insertion.
> 
>     AndyM
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]