From c0c15b0059d4aff31ac376f0b19f7742ed436cc7 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Sat, 01 Jan 2022 07:30:25 +0000 Subject: [PATCH] Auto revert buffers --- config.org | 18 +++++++----------- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/config.org b/config.org index 9e81ea7..7c60948 100644 --- a/config.org +++ b/config.org @@ -104,20 +104,10 @@ Use aspell for spellchecking. Auto-enable in latex and org as they're the main writing modes. #+BEGIN_SRC emacs-lisp - ;; (require 'ispell) - ;; (setq-default ispell-program-name "aspell") - ;; (setq-default ispell-local-dictionary "en_AU") - ;; (add-hook 'tex-mode-hook 'flyspell-mode) - ;; (add-hook 'latex-mode-hook 'flyspell-mode) - ;; (add-hook 'TeX-mode-hook 'flyspell-mode) - ;; (add-hook 'LaTeX-mode-hook 'flyspell-mode) - ;; (add-hook 'latex-mode-hook 'flyspell-buffer) - ;; (add-hook 'org-mode-hook 'flyspell-mode) - ;; (add-hook 'org-mode-hook 'flyspell-buffer) - ;; (diminish 'flyspell-mode) (use-package flyspell :hook (tex-mode latex-mode TeX-mode LaTeX-mode org-mode) :diminish flyspell-mode + :init (require 'ispell) :config (setq-default ispell-program-name "aspell") (setq-default ispell-local-dictionary "en_AU")) @@ -714,6 +704,12 @@ (use-package highlight-indentation :hook (prog-mode . highlight-indentation-mode)) #+END_SRC + +** Auto revert mode +Update unchanged buffers if underlying file changes. +#+BEGIN_SRC emacs-lisp + (global-auto-revert-mode) +#+END_SRC * Mode line tweaks Diminish is used but is included in init.el such that it can be used throughout this document ** Spaceline -- Gitblit v1.9.3