Last active
April 13, 2018 19:55
-
-
Save 15cm/b0ce8a9520f840d036232a6cc5f3cef0 to your computer and use it in GitHub Desktop.
Add space after line number(relative mode) for terminal emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my-linum-mode-hook (&rest r) | |
;; linum-relative-format should be first set as a custom variable | |
(setq linum-relative-format (if (display-graphic-p) "%4s" "%4s "))) | |
(my-linum-mode-hook) | |
;; fix reset problem of linum-relative-format | |
(advice-add 'spacemacs/cycle-spacemacs-theme :after #'my-linum-mode-hook) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment