From 94cee58a1e888350529a1f3850defe941f5e8ad8 Mon Sep 17 00:00:00 2001 From: justbur Date: Thu, 15 Oct 2015 14:15:15 -0400 Subject: [PATCH] spacemacs-layer: Fix linum-relative-mode The toggle is being called after the package is loaded, but the package is deferred based on a call to the toggle. This means that the first time toggle is used it's called at least twice. Furthermore, `(setq linum-format 'linum-relative)` effectively turns on the mode as it is. Possible fix for #2161 --- layers/+distribution/spacemacs/packages.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layers/+distribution/spacemacs/packages.el b/layers/+distribution/spacemacs/packages.el index b0b75b943..6e1416fbf 100644 --- a/layers/+distribution/spacemacs/packages.el +++ b/layers/+distribution/spacemacs/packages.el @@ -1462,9 +1462,7 @@ It will toggle the overlay under point or create an overlay of one character." (evil-leader/set-key "tr" 'linum-relative-toggle) :config (progn - (setq linum-format 'linum-relative) - (setq linum-relative-current-symbol "") - (linum-relative-toggle)))) + (setq linum-relative-current-symbol "")))) (defun spacemacs/init-move-text () (use-package move-text