diff --git a/README.org b/README.org index 4a26d99..c2bbecb 100644 --- a/README.org +++ b/README.org @@ -28,6 +28,7 @@ - [[#prettier-formatter][Prettier Formatter]] - [[#cdlatex][CDLaTeX]] - [[#file-extension-mode-association][File Extension Mode Association]] + - [[#automatically-revert-buffers-for-changed-files][Automatically revert buffers for changed files]] - [[#packagesel][packages.el]] - [[#packages][Packages]] @@ -444,6 +445,14 @@ If you use =org= and don't want your org files in the default location below, ch (add-to-list 'auto-mode-alist '("\\.m\\'" . octave-mode)) #+END_SRC +*** Automatically revert buffers for changed files + +Revert buffers when the underlying file has changed + +#+BEGIN_SRC emacs-lisp :tangle config.el +(global-auto-revert-mode 1) +#+END_SRC + ** packages.el To install a package with Doom you must declare them here and run =doom sync= on the command line, then restart Emacs for the changes to take effect -- or use =M-x doom/reload=. diff --git a/config.el b/config.el index 101bc28..f498b7e 100644 --- a/config.el +++ b/config.el @@ -48,3 +48,5 @@ :i "TAB" #'cdlatex-tab) (add-to-list 'auto-mode-alist '("\\.m\\'" . octave-mode)) + +(global-auto-revert-mode 1)