From 7c0e211b6699c9b1a43b910c83cac60890bf6e39 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sun, 31 Aug 2014 13:00:57 -0400 Subject: [PATCH] Defer loading of smartparens --- init-package/init-smartparens.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init-package/init-smartparens.el b/init-package/init-smartparens.el index 2bcb6a480..854207d65 100644 --- a/init-package/init-smartparens.el +++ b/init-package/init-smartparens.el @@ -1,3 +1,6 @@ (use-package smartparens-config + :commands smartparens-mode :init - (smartparens-global-mode t)) + (add-to-hooks 'smartparens-mode '(prog-mode-hook + erlang-mode-hook + )))