|
From: | Dmitry Gutov |
Subject: | Re: [patch] make electric-pair-mode smarter/more useful |
Date: | Fri, 13 Dec 2013 04:55:41 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 |
On 12.12.2013 19:06, João Távora wrote:
;;; Electric newlines after/before/around some chars. -(defvar electric-layout-rules '() +(defvar electric-layout-rules `((?\n . ,#'electric-pair-newline-between-pairs-rule))
Guess I'm a bit late with this comment (sorry), but does this mean that the usage of the electric newline would be set on per-mode basis?
For example, like described previously, if I want js-mode to only insert electric newlines when I press return, will I have to modify electric-layout-rules in js-mode-hook, and do so for any other mode I use that sets this variable?
Wouldn't a separate minor mode be better, electric-newline-mode maybe?
[Prev in Thread] | Current Thread | [Next in Thread] |