From 65230bff196eb02f6cb286e7edbe599646d2784a Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Tue, 29 Aug 2023 16:33:25 -0600 Subject: [PATCH] [Emacs] Add line numbers to kat-mode --- dotfiles/emacs.d/kat-mode.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dotfiles/emacs.d/kat-mode.org b/dotfiles/emacs.d/kat-mode.org index 69f200ef..effd3e05 100644 --- a/dotfiles/emacs.d/kat-mode.org +++ b/dotfiles/emacs.d/kat-mode.org @@ -132,3 +132,9 @@ This makes evil-mode play nice with org-fc #+begin_src emacs-lisp (auto-save-visited-mode +1) #+end_src +* Display line numbers in programming modes +#+begin_src emacs-lisp +(defun imalison:enable-display-line-numbers-mode () + (display-line-numbers-mode +1)) +(add-hook 'prog-mode-hook 'imalison:enable-display-line-numbers-mode) +#+end_src