Add aspell support

This commit is contained in:
Sameer Rahmani 2024-04-05 18:35:26 +01:00
parent 477f24b67b
commit c95461ebdb
Signed by: lxsameer
GPG Key ID: 8741FACBF412FFA5
3 changed files with 26 additions and 7 deletions

View File

@ -121,6 +121,7 @@
orderless
eglot
marginalia
nerd-icons
)
(provide 'fg42/deps)

View File

@ -199,17 +199,27 @@ match all of the components in any order."
completion-category-defaults nil
completion-category-overrides '((file (styles partial-completion)))))
(use! savehist
"Persist history over Emacs restarts. Vertico sorts by history position."
:init
(savehist-mode))
(use! marginalia
"Adds useful info to minibuffers completions."
:commands marginalia-mode
:hook (emacs-startup . marginalia-mode))
(when-not-wm
(use! flyspell
"Spell checking on the fly"
:commands (flyspell-mode flyspell-prog-mode)
:init
(setq-default ispell-program-name "aspell")
(setq-default ispell-extra-args '("--sug-mode=ultra"
"--lang=en_US"
"--camel-case")))
(use! savehist
"Persist history over Emacs restarts. Vertico sorts by history position."
:init
(savehist-mode))
;; Minibuffer related stuff
(use! ctrlf
"Single buffer text search."
@ -226,6 +236,11 @@ match all of the components in any order."
Emacs."
:if (display-graphic-p))
(use! nerd-icons
"A utility package to collect various Icon Fonts and propertize them within
Emacs."
:if (display-graphic-p))
(use! yasnippet
"A Snippet is a template system for Emacs. "
:config

View File

@ -23,7 +23,8 @@ python311, python3Packages,
# This is a set of system tools required for FG42
# to work.
pyright, emacs, ripgrep, git, texinfo, vazir-fonts, fira-code, nerdfonts
, fira-mono, noto-fonts, gcc, ltex-ls, bash, tree-sitter,
, fira-mono, noto-fonts, gcc, ltex-ls, bash, tree-sitter
, aspellWithDicts,
supportWM ? true, xorg, slock,
@ -40,7 +41,9 @@ let
maintainers = import ./maintainers.nix;
runtimeBins = [ ripgrep git ltex-ls tree-sitter direnv nix nil ]
dicts = aspellWithDicts (dicts: with dicts; [ en en-computers en-science ]);
runtimeBins = [ ripgrep git ltex-ls tree-sitter direnv nix nil dicts ]
++ (lib.optional supportPython [
python311
# Python deps