]> git.eshelyaron.com Git - emacs.git/commitdiff
; (electric-indent-local-mode-map): Remap 'newline'.
authorEshel Yaron <me@eshelyaron.com>
Sun, 8 Sep 2024 15:42:46 +0000 (17:42 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 8 Sep 2024 15:42:46 +0000 (17:42 +0200)
lisp/electric.el

index 7722e10fa5915219a1c28d51ef5099a83018575d..ac597dc7bf37f14a7e866d0058d25c1f3fe7fd69 100644 (file)
@@ -155,6 +155,10 @@ or comment."
                 (indent-according-to-mode)
               (error (throw 'indent-error nil)))))))))
 
+(defvar-keymap electric-indent-local-mode-map
+  :doc "Keymap for `electric-indent-local-mode'."
+  "<remap> <newline>" #'newline-and-indent)
+
 ;;;###autoload
 (define-minor-mode electric-indent-local-mode
   "Toggle `electric-indent-mode' only in this buffer."