mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
core-ui: don't disable nlinum for new frames (bug seems to be gone?)
This commit is contained in:
@ -189,12 +189,7 @@ file."
|
|||||||
;; Optimization: calculate line number column width beforehand
|
;; Optimization: calculate line number column width beforehand
|
||||||
(add-hook! nlinum-mode
|
(add-hook! nlinum-mode
|
||||||
(setq nlinum--width (length (save-excursion (goto-char (point-max))
|
(setq nlinum--width (length (save-excursion (goto-char (point-max))
|
||||||
(format-mode-line "%l")))))
|
(format-mode-line "%l"))))))
|
||||||
|
|
||||||
;; Disable nlinum explicitly before making a frame, otherwise nlinum throws
|
|
||||||
;; linum face errors that prevent the frame from spawning.
|
|
||||||
(add-hook! '(before-make-frame-hook after-make-frame-functions)
|
|
||||||
(nlinum-mode -1)))
|
|
||||||
|
|
||||||
;; Helps us distinguish stacked delimiter pairs. Especially in parentheses-drunk
|
;; Helps us distinguish stacked delimiter pairs. Especially in parentheses-drunk
|
||||||
;; languages like Lisp.
|
;; languages like Lisp.
|
||||||
|
Reference in New Issue
Block a user