Skip to content

Commit 103f1de

Browse files
committed
feat: start using flyspell-mode automatically
1 parent 9c92b12 commit 103f1de

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.emacs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,16 @@
422422
(error "[-] File name is empty!")
423423
(concat "~/org/deps/" filename)))
424424

425+
;; FlySpell for spell checking
426+
;; https://www.emacswiki.org/emacs/FlySpell
427+
(dolist (hook '(text-mode-hook))
428+
(add-hook hook (lambda () (flyspell-mode 1))))
429+
(dolist (hook '(change-log-mode-hook log-edit-mode-hook))
430+
(add-hook hook (lambda () (flyspell-mode -1))))
431+
(dolist (hook '(org-mode-hook))
432+
(add-hook hook (lambda () (flyspell-mode 1))))
433+
(setq flyspell-issue-message-flag nil) ;; performance improvement
434+
425435
(use-package org
426436
:ensure t
427437
:bind (("C-c l" . org-store-link)

0 commit comments

Comments
 (0)