emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs default bindings


From: Dmitry Gutov
Subject: Re: Emacs default bindings
Date: Tue, 28 Sep 2021 14:16:01 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 28.09.2021 03:54, Stefan Kangas wrote:
Do you have an implementation strategy in mind, BTW?
I didn't really think about it, no.  Sorry.

But I guess we can't just throw it in the body of `prog-mode' and call
it a day...

I suppose it could look like

diff --git a/lisp/progmodes/prog-mode.el b/lisp/progmodes/prog-mode.el
index 6c09dcf881..0060de44cf 100644
--- a/lisp/progmodes/prog-mode.el
+++ b/lisp/progmodes/prog-mode.el
@@ -36,7 +36,7 @@ prog-mode
   "Generic programming mode, from which others derive."
   :group 'languages)

-(defcustom prog-mode-hook nil
+(defcustom prog-mode-hook '(show-paren-local-mode)
   "Normal hook run when entering programming modes."
   :type 'hook
   :options '(flyspell-prog-mode abbrev-mode flymake-mode


This might make it more difficult to disable it, though, for less experienced users.

But we do use this approach with a number of other hooks.



reply via email to

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