From 61d324f63258197807d30fbce988cde7e1b74967 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 24 Apr 2013 22:53:21 -0400 Subject: pkg: add smex --- init/10-km-pkg.el | 1 + init/km-evil.el | 2 +- init/km-smex.el | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 init/km-smex.el 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) -- cgit v1.2.3