[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.
- Re: Emacs default bindings, (continued)
- Re: Emacs default bindings, João Távora, 2021/09/08
- Re: Emacs default bindings, Dmitry Gutov, 2021/09/08
- Re: Emacs default bindings, Dmitry Gutov, 2021/09/27
- Re: Emacs default bindings, Stefan Kangas, 2021/09/27
- Re: Emacs default bindings, Dmitry Gutov, 2021/09/27
- Re: Emacs default bindings, Stefan Kangas, 2021/09/27
- Re: Emacs default bindings, Dmitry Gutov, 2021/09/27
- Re: Emacs default bindings, Dmitry Gutov, 2021/09/27
- Re: Emacs default bindings, Stefan Kangas, 2021/09/27
- Re: Emacs default bindings, Stefan Kangas, 2021/09/27
- Re: Emacs default bindings,
Dmitry Gutov <=
- Re: Emacs default bindings, Richard Stallman, 2021/09/30
- Re: Emacs default bindings, Jim Porter, 2021/09/27
- Re: Emacs default bindings, Philip Kaludercic, 2021/09/28
- Re: Emacs default bindings, Yuri Khan, 2021/09/28
- Re: Emacs default bindings, Eli Zaretskii, 2021/09/28
- Re: Emacs default bindings, Stefan Monnier, 2021/09/28
- Re: Emacs default bindings, Eli Zaretskii, 2021/09/28
- Re: Emacs default bindings, Stefan Kangas, 2021/09/28
- Re: Emacs default bindings, Dmitry Gutov, 2021/09/28
- Enabling show-paren-mode by default (Was Re: Emacs default bindings), Bodertz, 2021/09/28