core-ui: don't disable nlinum for new frames (bug seems to be gone?)

This commit is contained in:
Henrik Lissner 2017-02-24 03:16:03 -05:00
parent 75a5e55255
commit ffd5f92302

View file

@ -189,12 +189,7 @@ file."
;; Optimization: calculate line number column width beforehand
(add-hook! nlinum-mode
(setq nlinum--width (length (save-excursion (goto-char (point-max))
(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)))
(format-mode-line "%l"))))))
;; Helps us distinguish stacked delimiter pairs. Especially in parentheses-drunk
;; languages like Lisp.