fix: use environment variable for emacs wordlist

This commit is contained in:
Swarsel 2024-07-29 17:12:39 +02:00
parent d3a253c1b3
commit 747f160eea
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
2 changed files with 2 additions and 2 deletions

View file

@ -9103,7 +9103,7 @@ This should setup a wordlist that can be used as a dictionary. However, for some
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; set the NixOS wordlist by hand ;; set the NixOS wordlist by hand
(setq ispell-alternate-dictionary "/nix/store/gjmvnbs97cnw19wnqh9m075cdbhy8r8g-wordlist-WORDLIST") (setq ispell-alternate-dictionary (getenv "WORDLIST"))
#+end_src #+end_src

View file

@ -596,7 +596,7 @@ create a new one."
(global-evil-surround-mode 1)) (global-evil-surround-mode 1))
;; set the NixOS wordlist by hand ;; set the NixOS wordlist by hand
(setq ispell-alternate-dictionary "/nix/store/gjmvnbs97cnw19wnqh9m075cdbhy8r8g-wordlist-WORDLIST") (setq ispell-alternate-dictionary (getenv "WORDLIST"))
(dolist (face '(default fixed-pitch)) (dolist (face '(default fixed-pitch))
(set-face-attribute face nil (set-face-attribute face nil