diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2024-05-10 16:59:49 +0100 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2024-05-10 16:59:49 +0100 |
commit | 0e9b164fdc6ff9bd96478e1d7581efafe0d7d532 (patch) | |
tree | 8f1b76a058cddcc06caef28c790a1e86a7638a86 | |
parent | 4c0436594011bb7663832234f5fac0613d42b6bf (diff) | |
download | dotfiles-0e9b164fdc6ff9bd96478e1d7581efafe0d7d532.tar.gz |
tidy activating global-auto-revert-mode
-rw-r--r-- | .emacs.d/init.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 0333269c..8d6db9db 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -176,6 +176,12 @@ two 80-column windows side-by-side in the frame." '(Man-notify-method 'aggressive) '(after-save-hook '(executable-make-buffer-file-executable-if-script-p)) '(async-shell-command-buffer 'rename-buffer) + + ;; Always update buffers when files change on disk -- if we want to go back + ;; to the version of the file we had in Emacs, we can just hit C-/. + '(auto-revert-use-notify nil) + '(global-auto-revert-mode 1) + '(auth-source-save-behavior nil) '(auto-save-file-name-transforms '((".*" "~/.emacs.d/auto-saves/" t))) '(backup-by-copying-when-linked t) @@ -859,11 +865,6 @@ To be used only when it seems to be necessary." ;; calling emacsclient(1), this is like '<ESC>ZZ' in vi. (global-set-key "\C-cz" "\C-x\C-s\C-x#") -;; always update buffers when files change on disk -- if we want to go back to -;; the version of the file we had in Emacs, we can just hit undo -(setq auto-revert-use-notify nil) -(global-auto-revert-mode 1) - ;; C-x x g should not ask for confirmation. (global-set-key "\C-xxg" (lambda () (interactive) |