feat(emacs): fix paths

This commit is contained in:
Ray Andrew 2025-12-27 00:21:41 -06:00
parent 4e8a1c8894
commit 7bdedf6f61
Signed by: rayandrew
SSH key fingerprint: SHA256:XYrYrxF0Z3A72n8P/p6mqPRNQZT22F88XcLsG+kX4xw
2 changed files with 32 additions and 6 deletions

View file

@ -16,6 +16,11 @@
(defconst rs/mbsync-command "~/dotfiles/bin/path-shim mbsync -a"
"Command to sync mail.")
;;; Path setup for Nix
(add-to-list 'exec-path "/run/current-system/sw/bin")
(add-to-list 'exec-path "/etc/profiles/per-user/rayandrew/bin")
(add-to-list 'exec-path "~/.nix-profile/bin")
;;; Elpaca bootstrap
(defvar elpaca-installer-version 0.11)
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
@ -306,6 +311,8 @@
(setq flyspell-issue-message-flag nil)
;; ispell
(setq ispell-program-name "aspell")
(setq ispell-dictionary "en")
(setq text-mode-ispell-word-completion nil)
(setq ispell-silently-savep t)
@ -936,13 +943,26 @@ frame if FRAME is nil, and to 1 if AMT is nil."
(use-package denote-explore
:ensure t
:bind
(("C-c n e n" . denote-explore-count-notes)
("C-c n e k" . denote-explore-count-keywords)
(;; Statistics
("C-c n e c" . denote-explore-count-notes)
("C-c n e C" . denote-explore-count-keywords)
("C-c n e b" . denote-explore-barchart-keywords)
("C-c n e e" . denote-explore-barchart-filetypes)
;; Random walks
("C-c n e r" . denote-explore-random-note)
("C-c n e l" . denote-explore-random-link)
("C-c n e g" . denote-explore-network)
("C-c n e b" . denote-explore-barchart-keywords)
("C-c n e s" . denote-explore-sync-metadata)))
("C-c n e k" . denote-explore-random-keyword)
("C-c n e x" . denote-explore-random-regex)
;; Denote Janitor
("C-c n e d" . denote-explore-identify-duplicate-notes)
("C-c n e z" . denote-explore-zero-keywords)
("C-c n e s" . denote-explore-single-keywords)
("C-c n e o" . denote-explore-sort-keywords)
("C-c n e w" . denote-explore-rename-keyword)
;; Visualise denote
("C-c n e n" . denote-explore-network)
("C-c n e v" . denote-explore-network-regenerate)
("C-c n e D" . denote-explore-barchart-degree)))
;;; Email (mu4e)
(use-package mu4e

View file

@ -16,7 +16,13 @@
home.packages =
with pkgs;
[
aspell
(aspellWithDicts (
dicts: with dicts; [
en
en-computers
en-science
]
))
ispell
]
++ lib.optionals pkgs.stdenv.isLinux [