From bbf0b82262699dc07e1f27d3ff8619436130a32b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 29 Aug 2023 19:22:03 -0600 Subject: [PATCH] [Emacs] Enable display-line-numbers-mode --- dotfiles/emacs.d/README.org | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 16c2ddbe..4fe23f59 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -1073,25 +1073,9 @@ I keep it around just in case I need it. #+BEGIN_SRC emacs-lisp (line-number-mode t) (column-number-mode t) -#+END_SRC -*** nlinum -Disabling line numbers because they are slow as fuck. -#+BEGIN_SRC emacs-lisp -(use-package nlinum - :disabled t - :demand t - :config - (progn - (add-hook 'prog-mode-hook (lambda () (nlinum-mode t))) - (defun imalison-nlinum-mode-hook () - (when nlinum-mode - (setq-local nlinum-format - (concat "%" (number-to-string - ;; Guesstimate number of buffer lines. - (ceiling (log (max 1 (/ (buffer-size) 80)) 10))) - "d")))) - - (add-hook 'nlinum-mode-hook #'imalison-nlinum-mode-hook))) +(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 ** Backups *** Put them all in one directory