summaryrefslogtreecommitdiff
path: root/lisp/init-smex.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-01-26 01:59:44 -0500
committerKyle Meyer <kyle@kyleam.com>2014-01-26 01:59:44 -0500
commit7869360008d87ca4b459c703f4894625dd8181cc (patch)
treeb0f3f50ae2c309056883e03848abb3e1e4cb9b1e /lisp/init-smex.el
parent47e1d90700105f6b0f0550d7632a22b3fe81acb9 (diff)
downloademacs.d-7869360008d87ca4b459c703f4894625dd8181cc.tar.gz
Follow Purcell's emacs.d structure
User init files are added using provide/require. https://github.com/purcell/emacs.d
Diffstat (limited to 'lisp/init-smex.el')
-rw-r--r--lisp/init-smex.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/init-smex.el b/lisp/init-smex.el
new file mode 100644
index 0000000..94e48b5
--- /dev/null
+++ b/lisp/init-smex.el
@@ -0,0 +1,9 @@
+;; http://www.juanrubio.me/2011/11/emacs-smex-m-x-do-not-like-typing/
+(require 'smex)
+(smex-initialize)
+;; smex bound in km-evil.ex (,x).
+(global-set-key (kbd "M-X") 'smex-major-mode-commands)
+;; Old M-x
+(global-set-key (kbd "M-x") 'execute-extended-command)
+
+(provide 'init-smex)