fix unknown package hl-line #10

This commit is contained in:
Jesús 2019-05-13 19:53:02 -05:00
parent ed08b1201f
commit 82f87f85d8
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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)