diff options
Diffstat (limited to 'init')
-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) |