From 4ebb4dc316ad135c94c94755e7bf8dcd1403b9e4 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Sat, 01 Jan 2022 07:23:09 +0000
Subject: [PATCH] Move spell checking to use-package

---
 init.el    |    4 ++--
 config.org |   12 +-----------
 2 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/config.org b/config.org
index 9e81ea7..44bee07 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"))
diff --git a/init.el b/init.el
index b2d822e..c2b78e1 100644
--- a/init.el
+++ b/init.el
@@ -5,8 +5,8 @@
 ;; Repos
 (require 'package)
 (setq package-archives '(("gnu"   . "https://elpa.gnu.org/packages/")
-			 ("nongnu"  . "https://elpa.nongnu.org/nongnu/")
-			 ("melpa" . "https://melpa.org/packages/")))
+			             ("nongnu"  . "https://elpa.nongnu.org/nongnu/")
+			             ("melpa" . "https://melpa.org/packages/")))
 (package-initialize)
 
 ;; use-package

--
Gitblit v1.9.3