diff --git a/.config/doom/config.el b/.config/doom/config.el index 9c8f209..9e82972 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -3,6 +3,9 @@ :desc "List bookmarks" "L" #'list-bookmarks :desc "Save current bookmarks to bookmark file" "w" #'bookmark-save)) +(global-auto-revert-mode 1) +(setq global-auto-revert-non-file-buffers t) + (evil-define-key 'normal ibuffer-mode-map (kbd "f c") 'ibuffer-filter-by-content (kbd "f d") 'ibuffer-filter-by-directory diff --git a/.config/doom/config.org b/.config/doom/config.org index e981dd6..b0e82c1 100644 --- a/.config/doom/config.org +++ b/.config/doom/config.org @@ -8,6 +8,7 @@ - [[#bookmarks-and-buffers][BOOKMARKS AND BUFFERS]] - [[#bookmarks][Bookmarks]] - [[#buffers][Buffers]] + - [[#global-auto-revert][Global Auto Revert]] - [[#keybindings-within-ibuffer-mode][Keybindings within ibuffer mode]] - [[#calendar][CALENDAR]] - [[#centaur-tabs][CENTAUR-TABS]] @@ -77,6 +78,14 @@ Regarding /buffers/, the text you are editing in Emacs resides in an object call | previous-buffer | Goto previous buffer | SPC b p | | save-buffer | Save current buffer | SPC b s | +** Global Auto Revert +A buffer can get out of sync with respect to its visited file on disk if that file is changed by another program. To keep it up to date, you can enable Auto Revert mode by typing M-x auto-revert-mode, or you can set it to be turned on globally with 'global-auto-revert-mode'. I have also turned on Global Auto Revert on non-file buffers, which is especially useful for 'dired' buffers. + +#+begin_src emacs-lisp +(global-auto-revert-mode 1) +(setq global-auto-revert-non-file-buffers t) +#+end_src + ** Keybindings within ibuffer mode | COMMAND | DESCRIPTION | KEYBINDING | |-----------------------------------+----------------------------------------+------------|