Move relative-line-numbers layer to spacemacs layer
This commit is contained in:
parent
2df606bb68
commit
51e26c858c
|
@ -1,5 +0,0 @@
|
|||
# Relative line numbers contribution layer for Spacemacs
|
||||
|
||||
Installs the [linum-relative](https://github.com/coldnew/linum-relative) package for relative line numbers like in Vim.
|
||||
|
||||
Relative line numbers can be toggled using `<SPC> t r`.
|
|
@ -1,20 +0,0 @@
|
|||
(defvar relative-line-numbers-packages
|
||||
'(
|
||||
linum-relative
|
||||
)
|
||||
"List of all packages to install and/or initialize. Built-in packages
|
||||
which require an initialization must be listed explicitly in the list.")
|
||||
|
||||
(defvar relative-line-numbers-excluded-packages '()
|
||||
"List of packages to exclude.")
|
||||
|
||||
(defun relative-line-numbers/init-linum-relative ()
|
||||
"Initialize linum-relative"
|
||||
(use-package linum-relative
|
||||
:config
|
||||
(progn
|
||||
(setq linum-format 'linum-relative)
|
||||
(setq linum-relative-current-symbol "")
|
||||
|
||||
(evil-leader/set-key "tr" 'linum-relative-toggle)))
|
||||
)
|
|
@ -74,6 +74,7 @@
|
|||
json-mode
|
||||
ledger-mode
|
||||
less-css-mode
|
||||
linum-relative
|
||||
key-chord
|
||||
magit
|
||||
magit-gitflow
|
||||
|
@ -1465,6 +1466,17 @@ determine the state to enable when escaping from the insert state.")
|
|||
"md" 'ledger-delete-current-transaction
|
||||
"ma" 'ledger-add-transaction))))
|
||||
|
||||
(defun spacemacs/init-linum-relative ()
|
||||
(use-package linum-relative
|
||||
:commands linum-relative-toggle
|
||||
:init
|
||||
(evil-leader/set-key "tr" 'linum-relative-toggle)
|
||||
:config
|
||||
(progn
|
||||
(setq linum-format 'linum-relative)
|
||||
(setq linum-relative-current-symbol "")
|
||||
(linum-relative-toggle))))
|
||||
|
||||
(defun spacemacs/init-magit ()
|
||||
(use-package magit
|
||||
:defer t
|
||||
|
|
Loading…
Reference in a new issue