summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/init-writing.el19
1 files changed, 15 insertions, 4 deletions
diff --git a/config/init-writing.el b/config/init-writing.el
index e60f030..c60a18a 100644
--- a/config/init-writing.el
+++ b/config/init-writing.el
@@ -9,10 +9,21 @@
(require 'init-markdown)
-(require 'ispell)
-(setq ispell-program-name (executable-find "aspell"))
-(setq ispell-dictionary "en_US")
-(setq ispell-extra-args '("--camel-case"))
+(use-package flyspell
+ :commands (flyspell-mode flyspell-prog-mode)
+ :hook ((text-mode . flyspell-mode)
+ (org-mode . flyspell-mode)
+ (git-commit-mode . flyspell-mode)
+ (prog-mode . flyspell-prog-mode))
+ :if (setq ispell-program-name (executable-find "aspell"))
+ :diminish flyspell-mode
+ :bind (:map flyspell-mode-map
+ ("C-." . nil)
+ ("C-;" . nil))
+ :custom
+ (ispell-silently-savep t)
+ (ispell-local-dictionary "en_US")
+ (ispell-extra-args '("--camel-case")))
(provide 'init-writing)