Add aspell support
This commit is contained in:
parent
477f24b67b
commit
c95461ebdb
|
@ -121,6 +121,7 @@
|
||||||
orderless
|
orderless
|
||||||
eglot
|
eglot
|
||||||
marginalia
|
marginalia
|
||||||
|
nerd-icons
|
||||||
)
|
)
|
||||||
|
|
||||||
(provide 'fg42/deps)
|
(provide 'fg42/deps)
|
||||||
|
|
|
@ -199,17 +199,27 @@ match all of the components in any order."
|
||||||
completion-category-defaults nil
|
completion-category-defaults nil
|
||||||
completion-category-overrides '((file (styles partial-completion)))))
|
completion-category-overrides '((file (styles partial-completion)))))
|
||||||
|
|
||||||
(use! savehist
|
|
||||||
"Persist history over Emacs restarts. Vertico sorts by history position."
|
|
||||||
:init
|
|
||||||
(savehist-mode))
|
|
||||||
|
|
||||||
(use! marginalia
|
(use! marginalia
|
||||||
"Adds useful info to minibuffers completions."
|
"Adds useful info to minibuffers completions."
|
||||||
:commands marginalia-mode
|
:commands marginalia-mode
|
||||||
:hook (emacs-startup . marginalia-mode))
|
:hook (emacs-startup . marginalia-mode))
|
||||||
|
|
||||||
(when-not-wm
|
(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
|
;; Minibuffer related stuff
|
||||||
(use! ctrlf
|
(use! ctrlf
|
||||||
"Single buffer text search."
|
"Single buffer text search."
|
||||||
|
@ -226,6 +236,11 @@ match all of the components in any order."
|
||||||
Emacs."
|
Emacs."
|
||||||
:if (display-graphic-p))
|
: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
|
(use! yasnippet
|
||||||
"A Snippet is a template system for Emacs. "
|
"A Snippet is a template system for Emacs. "
|
||||||
:config
|
:config
|
||||||
|
|
|
@ -23,7 +23,8 @@ python311, python3Packages,
|
||||||
# This is a set of system tools required for FG42
|
# This is a set of system tools required for FG42
|
||||||
# to work.
|
# to work.
|
||||||
pyright, emacs, ripgrep, git, texinfo, vazir-fonts, fira-code, nerdfonts
|
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,
|
supportWM ? true, xorg, slock,
|
||||||
|
|
||||||
|
@ -40,7 +41,9 @@ let
|
||||||
|
|
||||||
maintainers = import ./maintainers.nix;
|
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 [
|
++ (lib.optional supportPython [
|
||||||
python311
|
python311
|
||||||
# Python deps
|
# Python deps
|
||||||
|
|
Loading…
Reference in New Issue