fix unknown package hl-line #10
This commit is contained in:
parent
ed08b1201f
commit
82f87f85d8
@ -31,14 +31,6 @@
|
|||||||
(sass-mode . linum-mode)
|
(sass-mode . linum-mode)
|
||||||
(web-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 ()
|
(defun my-linum-get-format-string ()
|
||||||
"Format the string of the column in the buffer.
|
"Format the string of the column in the buffer.
|
||||||
It helps to show the numbering plus a separation bar."
|
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")))
|
(format (concat "%" (number-to-string width) "d \u2502")))
|
||||||
(setq my-linum-format-string format)))
|
(setq my-linum-format-string format)))
|
||||||
|
|
||||||
|
(add-hook 'linum-before-numbering-hook 'my-linum-get-format-string)
|
||||||
|
|
||||||
(defvar my-linum-current-line-number 0)
|
(defvar my-linum-current-line-number 0)
|
||||||
|
|
||||||
(defun my-linum-format (line-number)
|
(defun my-linum-format (line-number)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user