mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feature/evil: don't change save behavior in noninteractive emacs
This commit is contained in:
@ -91,8 +91,9 @@
|
||||
(buffer-name))
|
||||
(count-lines (point-min) (point-max))
|
||||
(buffer-size)))
|
||||
(setq save-silently t)
|
||||
(add-hook 'after-save-hook #'+evil|save-buffer)
|
||||
(unless noninteractive
|
||||
(setq save-silently t)
|
||||
(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
|
||||
|
Reference in New Issue
Block a user