Ich versuche die Zeilennummerierung in Emacs einzurichten.
Linum funktioniert gut, aber wenn ich zwei Puffer öffne, verschwindet die Nummerierung für leere Zeilen. Ich benutze Manjaro Linux. Emacs arbeitet im Terminal.Emacs - Keine Zeilennummerierung für leere Zeilen
-Code aus .emacs-Datei:
(add-hook 'find-file-hook (lambda() (linum-mode 1)))
(unless window-system
(add-hook 'linum-before-numbering-hook
(lambda()
(setq-local linum-format-fmt
(let ((w (length (number-to-string
(count-lines (point-min) (point-max))))))
(concat "%"(number-to-string w) "d"))))))
(defun linum-format-func (line)
(concat
(propertize (format linum-format-fmt line) 'face 'linum)
(propertize " " 'face 'mode-line)))
(unless window-system
(setq linum-format 'linum-format-func))
Wie kann ich es beheben?
See: http://stackoverflow.com/a/25082664/2112489 und http: //emacs.stackexchange com/a/4179/2287 Vielleicht gilt einer von ihnen. – lawlist