commit 02e9d553190d1e6bf87c674e1b9f726626dd0c06
parent 11ef490807df5c74db98e1143bbe99ba6bff2e81
Author: Vincent Demeester <vincent@sbr.pm>
Date: Wed, 5 Jun 2024 10:47:06 +0200
tools/emacs: add jinx (spell checking)
And install enchant.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/tools/emacs/config/config-editing.el b/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
diff --git a/users/vincent/dev/emacs.nix b/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;