diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/init-nlinum.el | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/init-nlinum.el b/modules/init-nlinum.el index 423e321..c7ae564 100644 --- a/modules/init-nlinum.el +++ b/modules/init-nlinum.el @@ -31,14 +31,6 @@ (sass-mode . linum-mode) (web-mode . linum-mode)) -(use-package hl-line) - -(defface my-linum-hl - `((t :inherit linum :background ,(face-background 'hl-line nil t))) - "Face for the current line number." - :group 'linum) -(add-hook 'linum-before-numbering-hook 'my-linum-get-format-string) - (defun my-linum-get-format-string () "Format the string of the column in the buffer. It helps to show the numbering plus a separation bar." @@ -47,6 +39,8 @@ It helps to show the numbering plus a separation bar." (format (concat "%" (number-to-string width) "d \u2502"))) (setq my-linum-format-string format))) +(add-hook 'linum-before-numbering-hook 'my-linum-get-format-string) + (defvar my-linum-current-line-number 0) (defun my-linum-format (line-number) |