all repos — archive/dotfiles @ 946d2c2901b669a8b24f23d379e2d412e3171087

Superseded by nixfiles

Emacs: Enabled display-line-numbers mode, if available
Alan Pearce alan@alanpearce.eu
Sat, 21 Jul 2018 13:37:16 +0200
commit

946d2c2901b669a8b24f23d379e2d412e3171087

parent

54d8b5a25eca51f9728ff21f104d014e160ca6d6

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -900,6 +900,12 @@ frame-resize-pixelwise nil) (if (boundp 'ns-pop-up-frames)
     (setq ns-pop-up-frames nil))
 
+(when (version<= "26.0" emacs-version)
+  (use-package display-line-numbers
+    :config (progn
+              (setq display-line-numbers-type 'visual)
+              (global-display-line-numbers-mode +1))))
+
 ;;;;; eyebrowse
 
 ;; Workspaces, a bit like dwm.  On Windows and Linux (at least the WMs