diff --git a/config/emacs/init.el b/config/emacs/init.el index d30f18a..2ec1c29 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -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 diff --git a/home/emacs.nix b/home/emacs.nix index bb7a08b..d8a5a86 100644 --- a/home/emacs.nix +++ b/home/emacs.nix @@ -16,7 +16,13 @@ home.packages = with pkgs; [ - aspell + (aspellWithDicts ( + dicts: with dicts; [ + en + en-computers + en-science + ] + )) ispell ] ++ lib.optionals pkgs.stdenv.isLinux [