diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-09-29 14:37:57 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-09-29 14:39:02 +0000 |
commit | 2d9419f984802e9c49bdc57c2cb42771d6013c1f (patch) | |
tree | 6e347728e30f50c0b3c494d8fc36faf35b2a8bed /modules/workstation/emacs/init.el | |
parent | acf0227c9f7d84304f1e8fe05c392dafa4b3a34e (diff) | |
download | nixlib-2d9419f984802e9c49bdc57c2cb42771d6013c1f.tar nixlib-2d9419f984802e9c49bdc57c2cb42771d6013c1f.tar.gz nixlib-2d9419f984802e9c49bdc57c2cb42771d6013c1f.tar.bz2 nixlib-2d9419f984802e9c49bdc57c2cb42771d6013c1f.tar.lz nixlib-2d9419f984802e9c49bdc57c2cb42771d6013c1f.tar.xz nixlib-2d9419f984802e9c49bdc57c2cb42771d6013c1f.tar.zst nixlib-2d9419f984802e9c49bdc57c2cb42771d6013c1f.zip |
modules/emacs: save-some-buffers isn't from Magit
So this code should be in its own section.
Diffstat (limited to 'modules/workstation/emacs/init.el')
-rw-r--r-- | modules/workstation/emacs/init.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el index 40136d6ba400..e58f9744fc78 100644 --- a/modules/workstation/emacs/init.el +++ b/modules/workstation/emacs/init.el @@ -32,13 +32,14 @@ (global-set-key (kbd "C-x g") 'magit-status) (global-set-key (kbd "C-x M-g") 'magit-dispatch) -;; Allow reverting buffers directly from the "Save file ...?" message. -(add-to-list 'save-some-buffers-action-alist - `(?r ,(lambda (buf) (with-current-buffer buf (revert-buffer t t))) - ,(purecopy "revert this buffer"))) - ;;; Rainbow Delimiters ;;; (add-hook 'prog-mode-hook #'rainbow-delimiters-mode) ;;; Rust ;;; (add-hook 'rust-mode-hook (lambda () (setq indent-tabs-mode nil))) + +;;; save-some-buffers ;;; +;; Allow reverting buffers directly from the "Save file ...?" message. +(add-to-list 'save-some-buffers-action-alist + `(?r ,(lambda (buf) (with-current-buffer buf (revert-buffer t t))) + ,(purecopy "revert this buffer"))) |