diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2023-01-11 18:03:28 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2023-01-11 18:03:32 -0700 |
commit | e33f5168aab82e69d017f6e6cf1f3a1937a2905f (patch) | |
tree | cabcf3dec66b6b9b36d0e54ae843139b220ce97b | |
parent | 98429b5e461f777fdd37669ade5a848112742e19 (diff) | |
download | dotfiles-e33f5168aab82e69d017f6e6cf1f3a1937a2905f.tar.gz |
set ispell-personal-dictionary & better way to select en_US dict
-rw-r--r-- | .emacs.d/init.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index b8fd9c53..ee1fdef8 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -392,8 +392,6 @@ windows side-by-side in the frame." '(remember-data-file "~/local/tmp/emacs-notes") '(remember-notes-initial-major-mode 'text-mode) '(require-final-newline t) - '(safe-local-variable-values - '((ispell-extra-args "--lang=en_US"))) '(save-interprogram-paste-before-kill nil nil nil "See <https://debbugs.gnu.org/53728>.") '(save-place-mode t nil nil "If quitting Emacs is slow, set `save-place-forget-unreadable-files' to nil.") '(savehist-additional-variables '(compile-history log-edit-comment-ring)) @@ -1042,6 +1040,16 @@ To be used only when it seems to be necessary." (setq bookmark-default-file spw/doc-bookmarks-file bookmark-save-flag 1)) +;; For files that must be in American English, add both these lines: +;; +;; <!-- Local IspellDict: en_US --> +;; <!-- Local IspellPersDict: ~/doc/aspell-en_US --> +;; +(let ((default-dictionary (expand-file-name "~/doc/aspell-en_GB"))) + (when (and (executable-find "aspell") (file-exists-p default-dictionary)) + ;; Emacs 29: use setopt + (setq ispell-personal-dictionary default-dictionary))) + (global-set-key "\C-h\C-m" #'man) (global-set-key "\C-cgp" #'cperl-perldoc) (global-set-key "\C-cgk" #'save-buffers-kill-emacs) |