all repos — nixfiles @ d960a2fda8b3f3e55ce9e970b158e206d7202feb

System and user configuration, managed by nix and home-manager

emacs: disable jinx-mode if loading dictionaries failed

Alan Pearce
commit

d960a2fda8b3f3e55ce9e970b158e206d7202feb

parent

b3888682818dde6b44e64b043c136f2ae6d70d89

1 file changed, 5 insertions(+), 1 deletion(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -1028,7 +1028,11 @@ prog-mode-hook
conf-mode-hook)) :general ([remap ispell-word] #'jinx-correct-word [remap evil-prev-flyspell-error] #'jinx-previous - [remap evil-next-flyspell-error] #'jinx-next)) + [remap evil-next-flyspell-error] #'jinx-next) + :config (progn + (advice-add 'jinx--load-dicts :after (lambda () + (unless jinx--dicts + (global-jinx-mode -1)))))) (use-package feature-mode :defer t