diff options
-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) |