[Top][All Lists]

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

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

From: Douglas Lewan
Subject: Re: Turning off sh-electric-here-document-mode?
Date: Wed, 13 May 2020 19:10:19 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 5/13/20 3:00 PM, Noam Postavsky wrote:
On Wed, 13 May 2020 at 14:54, Douglas Lewan <> 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.


You're right, -1 works too. As someone who's really entirely self-taught in programming, I'm curious about what you mean by "style reasons" here.

(908) 720 7908

"Lie and deny." It's very popular these days.

reply via email to

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