summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2015-02-02 17:15:29 (GMT)
committerRavi R Kiran <aine.marina@gmail.com>2015-02-02 17:15:29 (GMT)
commit1e17be3ccc50f0b80234062837516359f1b104da (patch)
tree0ac4416692f06805bc46fef9568fb00af306f534
parent58dfdefa78eb100dd53e3b6c817ddddafffb50cd (diff)
downloaddotemacs-1e17be3ccc50f0b80234062837516359f1b104da.zip
dotemacs-1e17be3ccc50f0b80234062837516359f1b104da.tar.gz
dotemacs-1e17be3ccc50f0b80234062837516359f1b104da.tar.bz2
Initialize expand region as soon as possible
This is because expand-region sets up a lot of autoloads for different modes, which gets messed up when expand-region is loaded on demand after these modes.
-rw-r--r--ravi-init-navigation.el5
-rw-r--r--ravi-init-web.el1
2 files changed, 4 insertions, 2 deletions
diff --git a/ravi-init-navigation.el b/ravi-init-navigation.el
index e239150..6e4deb7 100644
--- a/ravi-init-navigation.el
+++ b/ravi-init-navigation.el
@@ -67,7 +67,10 @@
)
(use-package expand-region
- :bind ("C-=" . er/expand-region)
+ :config
+ (progn
+ (bind-key "C-=" 'er/expand-region))
+ :idle (require 'expand-region)
:ensure t
)
diff --git a/ravi-init-web.el b/ravi-init-web.el
index b845c0e..13dd758 100644
--- a/ravi-init-web.el
+++ b/ravi-init-web.el
@@ -79,7 +79,6 @@
(sp-use-smartparens-bindings))
(add-hook 'web-mode-hook 'ravi/web-mode-sp-hook)
(add-hook 'web-mode-hook 'emmet-mode)
- (require 'web-mode-expansions) ; do not know why this is not automatically done
(defun sp-web-mode-is-code-context (id action context)
(when (and
(eq action 'insert)