|
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 <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.
Thanks.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.
-- ,Doug d.lewan2000@gmail.com (908) 720 7908 "Lie and deny." It's very popular these days.
[Prev in Thread] | Current Thread | [Next in Thread] |