aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-10-16 16:47:18 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-10-16 16:47:18 +0100
commit364750e97dac732be648a95db61b203b7995b39a (patch)
treecf1dce522054b77373aa9a16b7bed07abb35216a
parent6ff5b1633b12ce36970276cbc6328785cf56d2b3 (diff)
downloaddotfiles-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.
-rw-r--r--Emacs/.config/emacs/config.org2
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