summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2018-07-21 13:37:16 +0200
committerAlan Pearce2018-07-21 13:37:16 +0200
commit946d2c2901b669a8b24f23d379e2d412e3171087 (patch)
treef425043374f2684e9cda052b0074543085354d5e
parent54d8b5a25eca51f9728ff21f104d014e160ca6d6 (diff)
downloaddotfiles-946d2c2901b669a8b24f23d379e2d412e3171087.tar.lz
dotfiles-946d2c2901b669a8b24f23d379e2d412e3171087.tar.zst
dotfiles-946d2c2901b669a8b24f23d379e2d412e3171087.zip
Emacs: Enabled display-line-numbers mode, if available
-rw-r--r--emacs/.emacs.d/main.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 421f74a..0bb2e82 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -900,6 +900,12 @@
 (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