From 82efa16dab91fcecb5996b91ed582e7ef5bc2855 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Tue, 22 Mar 2016 09:38:37 -0400 Subject: [PATCH] Fix long-lines toggle and rename it Fix global version of the toggle Rename it to highlight-long-lines --- layers/+spacemacs/spacemacs-editing-visual/packages.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layers/+spacemacs/spacemacs-editing-visual/packages.el b/layers/+spacemacs/spacemacs-editing-visual/packages.el index 5404e3f5e..9a198aeca 100644 --- a/layers/+spacemacs/spacemacs-editing-visual/packages.el +++ b/layers/+spacemacs/spacemacs-editing-visual/packages.el @@ -271,20 +271,20 @@ (defun spacemacs-editing-visual/init-column-enforce-mode () (use-package column-enforce-mode - :defer t + :commands (column-enforce-mode global-column-enforce-mode) :init (progn ;; TODO Ideally find a way to define the minimum length for long lines ;; We may add support for the universal prefix argument in toggles to ;; be able to do this. - (spacemacs|add-toggle long-lines + (spacemacs|add-toggle highlight-long-lines :status column-enforce-mode :on (column-enforce-mode) :off (column-enforce-mode -1) :documentation "Highlight the characters past the 80th column." :evil-leader "t8") - (spacemacs|add-toggle long-lines-globally - :status column-enforce-mode + (spacemacs|add-toggle highlight-long-lines-globally + :status global-column-enforce-mode :on (global-column-enforce-mode) :off (global-column-enforce-mode -1) :documentation "Globally Highlight the characters past the 80th column."