From 9bcdad2f5f5433f7183e9ca1a1d4be7e5894fa47 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sat, 11 Oct 2014 00:43:12 -0400 Subject: [PATCH] Fix diminish of smartparens lighter --- spacemacs/packages.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index f4ec28c6c..56a4b0ec6 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -1358,16 +1358,14 @@ inserted in the buffer (if it is not read-only)." :mode ("\\.scss\\'" . scss-mode))) (defun spacemacs/init-smartparens () - (use-package smartparens-config - :commands smartparens-mode + (use-package smartparens + :defer t :init (progn (add-to-hooks 'smartparens-mode '(erlang-mode-hook markdown-mode-hook - prog-mode-hook))) - :config - (progn - (spacemacs//diminish smartparens-mode" (Ⓢ)")))) + prog-mode-hook)) + (spacemacs//diminish smartparens-mode " (Ⓢ)")))) (defun spacemacs/init-smeargle () (use-package smeargle