From 22b34397adcb6fdeffee59aa7c7810d88f1b1d49 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Sat, 5 Aug 2023 09:56:11 -0700 Subject: [PATCH] Fix line number display for emacs > 26.0.50 --- .emacs.d/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 1c9500a..768a4d5 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -52,7 +52,9 @@ (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-12"))) (line-number-mode t) -(global-linum-mode t) +(if (version<="26.0.50" emacs-version) + (global-display-line-numbers-mode t) + (globel-linum-mode t)) (menu-bar-mode -1) (tool-bar-mode -1)