diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-10-16 16:47:18 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-10-16 16:47:18 +0100 |
commit | 364750e97dac732be648a95db61b203b7995b39a (patch) | |
tree | cf1dce522054b77373aa9a16b7bed07abb35216a /Emacs/.config | |
parent | 6ff5b1633b12ce36970276cbc6328785cf56d2b3 (diff) | |
download | dotfiles-364750e97dac732be648a95db61b203b7995b39a.tar.gz dotfiles-364750e97dac732be648a95db61b203b7995b39a.tar.bz2 dotfiles-364750e97dac732be648a95db61b203b7995b39a.zip |
Hook display-line-numbers-mode to prog-mode and text-mode
Better than global-display-line-numbers-mode, which adds line numbers
to EShell and magit diffs, which just doesn't make sense.
Diffstat (limited to 'Emacs/.config')
-rw-r--r-- | Emacs/.config/emacs/config.org | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 11109ef..b9fdcd0 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1423,7 +1423,7 @@ toggle option is necessary. #+begin_src emacs-lisp (use-package display-line-numbers :defer t - :hook (after-init-hook . global-display-line-numbers-mode) + :hook ((prog-mode-hook text-mode-hook) . display-line-numbers-mode) :commands display-line-numbers-mode :general (mode-leader |