aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-05-13 19:53:02 -0500
committerJesús <heckyel@hyperbola.info>2019-05-13 19:53:02 -0500
commit82f87f85d8447808dc6ebd6a4796287815274ff1 (patch)
treec05dc0ed87cef2befdbae6cdfff30a6eda0ce9de
parented08b1201fa0fca2539afadc005866da726c8279 (diff)
downloademacs-personal-82f87f85d8447808dc6ebd6a4796287815274ff1.tar.lz
emacs-personal-82f87f85d8447808dc6ebd6a4796287815274ff1.tar.xz
emacs-personal-82f87f85d8447808dc6ebd6a4796287815274ff1.zip
fix unknown package hl-line #10
-rw-r--r--modules/init-nlinum.el10
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)