feature/evil: don't change save behavior in noninteractive emacs
This commit is contained in:
parent
1a452b6842
commit
e5efd3b673
1 changed files with 3 additions and 2 deletions
|
@ -91,8 +91,9 @@
|
|||
(buffer-name))
|
||||
(count-lines (point-min) (point-max))
|
||||
(buffer-size)))
|
||||
(unless noninteractive
|
||||
(setq save-silently t)
|
||||
(add-hook 'after-save-hook #'+evil|save-buffer)
|
||||
(add-hook 'after-save-hook #'+evil|save-buffer))
|
||||
;; Make ESC (from normal mode) the universal escaper. See `doom-escape-hook'.
|
||||
(advice-add #'evil-force-normal-state :after #'doom/escape)
|
||||
;; Don't move cursor when indenting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue