From 747f160eea8324b8c77928857615b1aa943d800c Mon Sep 17 00:00:00 2001 From: Swarsel Date: Mon, 29 Jul 2024 17:12:39 +0200 Subject: [PATCH] fix: use environment variable for emacs wordlist --- SwarselSystems.org | 2 +- programs/emacs/init.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SwarselSystems.org b/SwarselSystems.org index 55c919b..8568e93 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -9103,7 +9103,7 @@ This should setup a wordlist that can be used as a dictionary. However, for some #+begin_src emacs-lisp ;; set the NixOS wordlist by hand - (setq ispell-alternate-dictionary "/nix/store/gjmvnbs97cnw19wnqh9m075cdbhy8r8g-wordlist-WORDLIST") + (setq ispell-alternate-dictionary (getenv "WORDLIST")) #+end_src diff --git a/programs/emacs/init.el b/programs/emacs/init.el index 82fd354..ae60ef4 100644 --- a/programs/emacs/init.el +++ b/programs/emacs/init.el @@ -596,7 +596,7 @@ create a new one." (global-evil-surround-mode 1)) ;; 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)) (set-face-attribute face nil