diff options
author | mattkae <mattkae@protonmail.com> | 2023-03-11 17:22:13 -0500 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2023-03-11 17:22:13 -0500 |
commit | 38893cc42e33fc3ab5b80ef592b66226b9ba91cf (patch) | |
tree | d47b5588c892f9f16c3785afe856958d139c5e8d /lisp/text.el | |
parent | 8ed31715bf05c33918c6926c36f510d838521d6a (diff) |
Using use-package everywhere, upgrade to org roam
Diffstat (limited to 'lisp/text.el')
-rw-r--r-- | lisp/text.el | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/lisp/text.el b/lisp/text.el index ab564c5..2438b7d 100644 --- a/lisp/text.el +++ b/lisp/text.el @@ -4,11 +4,6 @@ "Disable word wrap in text mode." ;(perfect-margin-mode 1) (setq word-wrap t) - (require 'flyspell) - (flyspell-mode 1) - (set-face-attribute 'hl-line nil - :box nil) - (set-face-attribute 'flyspell-incorrect-face nil :foreground nil :weight 'normal :underline '(:color "red" :style wave)) (display-line-numbers-mode -1) ) @@ -24,10 +19,21 @@ (add-hook 'text-mode-hook 'my-perfect-margin-mode-hook)) (add-hook 'text-mode-hook 'setup-text-mode) -(require 'ispell) -(setq ispell-program-name (executable-find "hunspell") - ispell-dictionary "en_US") +(use-package ispell + :ensure t + :config + (setq ispell-program-name (executable-find "hunspell") + ispell-dictionary "en_US") + ) +(use-package flyspell + :ensure t + :hook (text-mode . flyspell-mode) + :config + (set-face-attribute 'hl-line nil + :box nil) + (set-face-attribute 'flyspell-incorrect-face nil :foreground nil :weight 'normal :underline '(:color "red" :style wave)) + ) (provide 'text) ;;; text.el ends here |