core-ui: don't disable nlinum for new frames (bug seems to be gone?)
This commit is contained in:
parent
75a5e55255
commit
ffd5f92302
1 changed files with 1 additions and 6 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue