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

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

Re: Turning off sh-electric-here-document-mode?


From: Noam Postavsky
Subject: Re: Turning off sh-electric-here-document-mode?
Date: Wed, 13 May 2020 15:00:46 -0400

On Wed, 13 May 2020 at 14:54, Douglas Lewan <d.lewan2000@gmail.com> wrote:

> ;; Don't give me here-documents by default.
> (add-hook 'sh-mode-hook (lambda ()
>           (setq sh-electric-here-document-mode nil)
>           (sh-electric-here-document-mode 0)))
>
> I don't know if that's a right way of doing it, but it works.

The setq is redundant. And I usually prefer -1 rather than 0 to
disable modes for style reasons, but it works either way.



reply via email to

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