diff --git a/contrib/relative-line-numbers/README.md b/contrib/relative-line-numbers/README.md deleted file mode 100644 index 485a1f7e2..000000000 --- a/contrib/relative-line-numbers/README.md +++ /dev/null @@ -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 ` t r`. diff --git a/contrib/relative-line-numbers/packages.el b/contrib/relative-line-numbers/packages.el deleted file mode 100644 index e70c92fb0..000000000 --- a/contrib/relative-line-numbers/packages.el +++ /dev/null @@ -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))) - ) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index e386c036c..abe5d25bd 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -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