From 364750e97dac732be648a95db61b203b7995b39a Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 16 Oct 2024 16:47:18 +0100 Subject: 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. --- Emacs/.config/emacs/config.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Emacs/.config/emacs/config.org') 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 -- cgit v1.2.3-13-gbd6f