From 3cb8ce02e2b3fdab598c6bd3dc3eb76faa36649f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 12 Jun 2025 07:09:07 -0700 Subject: configure `aspell` properly to work with Emacs --- nix/users/fcuny/configs/emacs/init.el | 2 ++ nix/users/fcuny/configs/emacs/site-lisp/init-base.el | 10 ---------- nix/users/fcuny/configs/emacs/site-lisp/init-text.el | 1 + nix/users/fcuny/emacs.nix | 1 + 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/nix/users/fcuny/configs/emacs/init.el b/nix/users/fcuny/configs/emacs/init.el index fdf0a3a..973e4ad 100644 --- a/nix/users/fcuny/configs/emacs/init.el +++ b/nix/users/fcuny/configs/emacs/init.el @@ -7,6 +7,8 @@ (add-to-list 'load-path (concat user-emacs-directory (convert-standard-filename "site-lisp/"))) (use-package exec-path-from-shell + :custom + (exec-path-from-shell-variables '("PATH" "MANPATH" "GOPATH" "GOBIN" "ASPELL_CONF")) :init (exec-path-from-shell-initialize)) (require 'init-base) diff --git a/nix/users/fcuny/configs/emacs/site-lisp/init-base.el b/nix/users/fcuny/configs/emacs/site-lisp/init-base.el index 0699619..7c884ab 100644 --- a/nix/users/fcuny/configs/emacs/site-lisp/init-base.el +++ b/nix/users/fcuny/configs/emacs/site-lisp/init-base.el @@ -42,8 +42,6 @@ (recentf-filename-handlers nil) (recentf-show-file-shortcuts-flag nil)) - - (use-package midnight :custom ;; every 6 hours @@ -91,21 +89,14 @@ (ibuffer-use-other-window t) (ibuffer-filter-group-name-face '(:inherit (font-lock-string-face bold)))) - - (use-package which-key :diminish :hook (after-init . which-key-mode)) - - - (use-package saveplace :config (save-place-mode t)) - - (use-package savehist :hook (after-init . savehist-mode) :custom @@ -177,7 +168,6 @@ (set-buffer-modified-p nil) (message "File '%s' successfully renamed to '%s'" name (file-name-nondirectory new-name)))))))) - (provide 'init-base) ;;; init-base.el ends here diff --git a/nix/users/fcuny/configs/emacs/site-lisp/init-text.el b/nix/users/fcuny/configs/emacs/site-lisp/init-text.el index d41c486..aee8889 100644 --- a/nix/users/fcuny/configs/emacs/site-lisp/init-text.el +++ b/nix/users/fcuny/configs/emacs/site-lisp/init-text.el @@ -16,6 +16,7 @@ :custom (ispell-program-name "aspell") (ispell-silently-savep t) + (ispell-dictionary "en_US") (ispell-local-dictionary "en_US") (ispell-extra-args '("--camel-case"))) diff --git a/nix/users/fcuny/emacs.nix b/nix/users/fcuny/emacs.nix index 7e522cd..0b4878f 100644 --- a/nix/users/fcuny/emacs.nix +++ b/nix/users/fcuny/emacs.nix @@ -78,5 +78,6 @@ in home.sessionVariables = { EDITOR = "${pkgs.emacs}/bin/emacsclient -a="; + ASPELL_CONF = "dict-dir ${pkgs.aspellDicts.en}/lib/aspell"; }; } -- cgit v1.2.3