Fix over-indentation with electric-indent-mode and narf-electric-indent-words
This commit is contained in:
parent
8fa1aaa784
commit
c427842a04
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ enable multiple minor modes for the same regexp.")
|
||||||
(defvar-local narf-electric-indent-words '())
|
(defvar-local narf-electric-indent-words '())
|
||||||
(setq electric-indent-chars '(?\n ?\^?))
|
(setq electric-indent-chars '(?\n ?\^?))
|
||||||
(push (lambda (c)
|
(push (lambda (c)
|
||||||
(when (eolp)
|
(when (and (eolp) narf-electric-indent-words)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(backward-word)
|
(backward-word)
|
||||||
(looking-at-p (concat "\\<" (regexp-opt narf-electric-indent-words))))))
|
(looking-at-p (concat "\\<" (regexp-opt narf-electric-indent-words))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue