I would like to disable the line numbers in Emacs because having them in Org-mode, terminal, mu4e, elfeed, etc.. looks ugly.
So I removed this:
(global-display-line-numbers-mode t)
Now I'm wondering if it's possible to enable the line numbers only for prog-mode and eventually plain text files (but not Org), I think that's text-mode.
Any suggestion is appreciated.
(dolist (mode '(text-mode-hook
prog-mode-hook
conf-mode-hook))
(add-hook mode (lambda () (display-line-numbers-mode 1))))