aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-06-12 07:09:07 -0700
committerFranck Cuny <franck@fcuny.net>2025-06-12 07:09:07 -0700
commit3cb8ce02e2b3fdab598c6bd3dc3eb76faa36649f (patch)
treeb62713f97f7cb22b93fe2c03f6dace277ac54587 /nix
parenttry a smaller font (diff)
downloadinfra-3cb8ce02e2b3fdab598c6bd3dc3eb76faa36649f.tar.gz
configure `aspell` properly to work with Emacs
Diffstat (limited to 'nix')
-rw-r--r--nix/users/fcuny/configs/emacs/init.el2
-rw-r--r--nix/users/fcuny/configs/emacs/site-lisp/init-base.el10
-rw-r--r--nix/users/fcuny/configs/emacs/site-lisp/init-text.el1
-rw-r--r--nix/users/fcuny/emacs.nix1
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";
};
}