Commit 02e9d553190d

Vincent Demeester <vincent@sbr.pm>
2024-06-05 10:47:06
tools/emacs: add jinx (spell checking)
And install enchant. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 11ef490
Changed files (2)
tools
emacs
users
vincent
tools/emacs/config/config-editing.el
@@ -177,5 +177,10 @@ If region is active, add its contents to the new buffer."
 	 ("M-<insert> d" . substitute-target-in-defun)
 	 ("M-<insert> b" . substitute-target-in-buffer)))
 
+(use-package jinx
+  :hook (emacs-startup . global-jinx-mode)
+  :bind (([remap ispell-word] . jinx-correct) ;; ("M-$" . jinx-correct)
+         ("C-M-$" . jinx-languages)))
+
 (provide 'config-editing)
 ;;; config-editing.el ends here
users/vincent/dev/emacs.nix
@@ -93,6 +93,7 @@ let
     hl-todo
     htmlize
     ibuffer-vc
+    jinx
     json-mode
     lin
     magit
@@ -186,6 +187,7 @@ in
     et
     languagetool
     asciidoctor
+    enchant
   ];
   programs.emacs = {
     enable = true;