diff options
author | Kyle Meyer <meyerkya@gmail.com> | 2013-04-24 22:53:21 -0400 |
---|---|---|
committer | Kyle Meyer <meyerkya@gmail.com> | 2013-04-24 23:10:56 -0400 |
commit | 61d324f63258197807d30fbce988cde7e1b74967 (patch) | |
tree | c666c30dfd44bd27fc5aee08db476bd92bb0d399 | |
parent | 915ce5e2d0c1ce4e1c0316c23c00fd7f553ce72e (diff) | |
download | emacs.d-61d324f63258197807d30fbce988cde7e1b74967.tar.gz |
pkg: add smex
-rw-r--r-- | init/10-km-pkg.el | 1 | ||||
-rw-r--r-- | init/km-evil.el | 2 | ||||
-rw-r--r-- | init/km-smex.el | 7 |
3 files changed, 9 insertions, 1 deletions
diff --git a/init/10-km-pkg.el b/init/10-km-pkg.el index d44607d..4489552 100644 --- a/init/10-km-pkg.el +++ b/init/10-km-pkg.el @@ -18,6 +18,7 @@ less-css-mode auctex magit + smex ) "Default packages") diff --git a/init/km-evil.el b/init/km-evil.el index d0cce74..cbaaaee 100644 --- a/init/km-evil.el +++ b/init/km-evil.el @@ -48,7 +48,7 @@ (key-chord-define-global ",r" 'km/recentf-ido-find-file) (key-chord-define-global ",t" 'org-capture) ;; instead of alt-x -(key-chord-define-global ",x" 'execute-extended-command) +(key-chord-define-global ",x" 'smex) (key-chord-define-global ",f" 'find-file) (key-chord-define-global ",g" 'magit-status) (key-chord-define-global ",b" 'ido-switch-buffer) diff --git a/init/km-smex.el b/init/km-smex.el new file mode 100644 index 0000000..3021771 --- /dev/null +++ b/init/km-smex.el @@ -0,0 +1,7 @@ +;; 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) |