Starting out with org-roam
This commit is contained in:
parent
741d9b5b6a
commit
b22971dbd5
9 changed files with 96 additions and 11 deletions
31
users/profiles/emacs/emacs.d/config/config-spelling.el
Normal file
31
users/profiles/emacs/emacs.d/config/config-spelling.el
Normal file
|
@ -0,0 +1,31 @@
|
|||
(use-package ispell
|
||||
:bind
|
||||
(("C-c s c" . ispell-complete-word)
|
||||
("C-c s d" . switch-dictionary-it-en))
|
||||
:hook
|
||||
((org-mode . flyspell-mode)
|
||||
(prog-mode . flyspell-prog-mode)
|
||||
)
|
||||
:custom
|
||||
((ispell-program-name "hunspell")
|
||||
(ispell-dictionary "it_IT"))
|
||||
:config
|
||||
;(add-to-list 'ispell-hunspell-dictionary-alist '("italian-hunspell" "[[:alpha:]]" "[^[:alpha:]]" "[']" t ("-d" "it_IT") nil iso-8859-1))
|
||||
;(add-to-list 'ispell-hunspell-dictionary-alist '("english-hunspell" "[[:alpha:]]" "[^[:alpha:]]" "[']" t ("-d" "en_US") nil iso-8859-1))
|
||||
(defun switch-dictionary-it-en ()
|
||||
(interactive)
|
||||
(let* ((dict ispell-current-dictionary)
|
||||
(new (if (string= dict "it_IT") "en_US"
|
||||
"it_IT")))
|
||||
(ispell-change-dictionary new)
|
||||
(message "Switched dictionary from %s to %s" dict new))))
|
||||
|
||||
(use-package writegood-mode
|
||||
:bind
|
||||
(("C-c s g" . writegood-grade-level)
|
||||
("C-c s r" . writegood-reading-ease)
|
||||
("C-c s w" . writegood-mode)))
|
||||
|
||||
|
||||
|
||||
(provide 'config-spelling)
|
Loading…
Add table
Add a link
Reference in a new issue