Sort package sections

This commit is contained in:
Kiana Sheibani 2024-06-13 15:18:55 -04:00
parent b689bae12f
commit eaea77467c
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -1961,6 +1961,30 @@ Having an IDE-style tooltip pop up is nice, but ~flymake-popon~ is a bit ugly by
(set-popup-rule! "^\\*Flymake" :vslot 1 :side 'bottom))
#+end_src
** Git
#+call: confpkg("Pkg: magit")
I use GPG signing for commits, which means that committing often takes longer than the single second timeout. Eight seconds seems like a reasonable amount of time to type in a password.
#+begin_src emacs-lisp
(after! git-commit
(setq git-commit-post-finish-hook-timeout 8))
#+end_src
*** Magit Syntax Highlighting
Magit already looks great, but it could use some proper syntax highlighting!
#+begin_src emacs-lisp :tangle packages.el
(package! magit-delta)
#+end_src
#+begin_src emacs-lisp
(use-package! magit-delta
:hook (magit-mode . magit-delta-mode))
#+end_src
** Indent Guides
#+call: confpkg("Pkg: highlight-indent-guides")
@ -1994,30 +2018,6 @@ Here's a convenient leader key binding as well:
"c L" #'lsp-avy-lens)
#+end_src
** Git
#+call: confpkg("Pkg: magit")
I use GPG signing for commits, which means that committing often takes longer than the single second timeout. Eight seconds seems like a reasonable amount of time to type in a password.
#+begin_src emacs-lisp
(after! git-commit
(setq git-commit-post-finish-hook-timeout 8))
#+end_src
*** Magit Syntax Highlighting
Magit already looks great, but it could use some proper syntax highlighting!
#+begin_src emacs-lisp :tangle packages.el
(package! magit-delta)
#+end_src
#+begin_src emacs-lisp
(use-package! magit-delta
:hook (magit-mode . magit-delta-mode))
#+end_src
** Marginalia
#+call: confpkg("Pkg: marginalia")
@ -2091,44 +2091,6 @@ I like having ophints for vim editing so that I don't get lost when making large
'(evil-goggles-change-face :inherit evil-goggles-delete-face)))
#+end_src
** Spell Checking
#+call: confpkg("Pkg: ispell")
Doom Emacs sets up spell-checking with ~ispell~ (Emacs-internal tool) and =aspell= (external tool) for us, which is nice. We just need to set which dictionary to use:
#+begin_src emacs-lisp
(after! ispell
(setq ispell-dictionary "en_US"))
#+end_src
We also need to generate a plain-text dictionary for some ~ispell~ functionality, which is annoying, but I haven't figured out a way around it. I could use my automated nix-build system for this, but I want to have access to my =aspell= config file, so it's easier to just put it in the usual location.
#+begin_src emacs-lisp
(defvar ~/plaintext-dict (expand-file-name "ispell/dict.plain" doom-data-dir)
"File location of a plaintext wordlist for spellchecking.")
(unless (file-readable-p ~/plaintext-dict)
(shell-command-to-string
(concat
"aspell -l en_US dump master > " ~/plaintext-dict ";"
"aspell -d en-computers.rws dump master >> " ~/plaintext-dict ";"
"aspell -d en_US-science.rws dump master >> " ~/plaintext-dict ";")))
(after! ispell
(setq ispell-alternate-dictionary ~/plaintext-dict))
#+end_src
Now that we have this word list, we can also plug it into ~cape-dict~ and get proper spelling completion!
#+begin_src emacs-lisp
(after! cape
(setq cape-dict-file ~/plaintext-dict))
(add-hook! text-mode
(add-hook! 'completion-at-point-functions :local :depth 40 #'cape-dict))
#+end_src
** Snippets
#+call: confpkg("Pkg: yasnippet")
@ -2184,6 +2146,44 @@ Doom's command to create a new snippet, ~+snippets/new~, defines a template insi
(find-file snippet-file-name))))
#+end_src
** Spell Checking
#+call: confpkg("Pkg: ispell")
Doom Emacs sets up spell-checking with ~ispell~ (Emacs-internal tool) and =aspell= (external tool) for us, which is nice. We just need to set which dictionary to use:
#+begin_src emacs-lisp
(after! ispell
(setq ispell-dictionary "en_US"))
#+end_src
We also need to generate a plain-text dictionary for some ~ispell~ functionality, which is annoying, but I haven't figured out a way around it. I could use my automated nix-build system for this, but I want to have access to my =aspell= config file, so it's easier to just put it in the usual location.
#+begin_src emacs-lisp
(defvar ~/plaintext-dict (expand-file-name "ispell/dict.plain" doom-data-dir)
"File location of a plaintext wordlist for spellchecking.")
(unless (file-readable-p ~/plaintext-dict)
(shell-command-to-string
(concat
"aspell -l en_US dump master > " ~/plaintext-dict ";"
"aspell -d en-computers.rws dump master >> " ~/plaintext-dict ";"
"aspell -d en_US-science.rws dump master >> " ~/plaintext-dict ";")))
(after! ispell
(setq ispell-alternate-dictionary ~/plaintext-dict))
#+end_src
Now that we have this word list, we can also plug it into ~cape-dict~ and get proper spelling completion!
#+begin_src emacs-lisp
(after! cape
(setq cape-dict-file ~/plaintext-dict))
(add-hook! text-mode
(add-hook! 'completion-at-point-functions :local :depth 40 #'cape-dict))
#+end_src
** Treemacs
#+call: confpkg("Pkg: treemacs")