mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-26 16:41:04 -05:00
Use EMACS26+ to detect native line numbers
Checking for the 'display-line-numbers symbol property is clumsy and checking for boundp is pointless now that we have a Emacs 25 polyfill for display-line-numbers-mode.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
;;; core/autoload/line-numbers.el -*- lexical-binding: t; -*-
|
||||
;;;###if (not (locate-library "display-line-numbers"))
|
||||
;;;###if (not EMACS26+)
|
||||
|
||||
;; This was lifted out of the display-line-numbers library in Emacs 26.1 and
|
||||
;; modified to use nlinum for Emacs 25.x users. It should be removed should
|
||||
@@ -26,8 +26,6 @@ relative number of a line.
|
||||
Lisp programs can disable display of a line number of a particular
|
||||
buffer line by putting the display-line-numbers-disable text property
|
||||
or overlay property on the first visible character of that line.")
|
||||
;;;###autoload
|
||||
(put 'display-line-numbers 'nlinum t)
|
||||
|
||||
;;;###autoload
|
||||
(defcustom display-line-numbers-type t
|
||||
|
Reference in New Issue
Block a user