Emacs: Remove Emacs-nox linum fringe

Also fixes the issue with non-dynamic fringe width in graphics display.
master
Pierre Neidhardt 2017-05-21 23:50:23 +02:00
parent aca248c2f0
commit 3db28fae1a
1 changed files with 6 additions and 3 deletions

View File

@ -72,9 +72,12 @@
;; Line numbers
(add-hook 'find-file-hook (lambda () (linum-mode 1)))
(define-key mickey-minor-mode-map (kbd "C-<f5>") 'linum-mode)
(add-hook
'linum-before-numbering-hook
(lambda () (if (display-graphic-p) (setq linum-format "%d") (setq linum-format "%d "))))
;; Emacs-nox does not display a fringe after the linum: Setting linum-format in
;; linum-before-numbering-hook is not the right approach as it will change the
;; type of linum-format in the middle. See linum-update-window.
;; See http://stackoverflow.com/questions/3626632/right-align-line-numbers-with-linum-mode
;; and http://stackoverflow.com/questions/3626632/right-align-line-numbers-with-linum-mode.
;; The complexity is not worth the benefit.
;; Indentation
(setq-default tab-width 2)