diff options
author | Raúl Benencia <rul@kalgan.cc> | 2019-06-23 11:43:30 -0700 |
---|---|---|
committer | Raúl Benencia <rul@kalgan.cc> | 2019-06-23 13:32:01 -0700 |
commit | 284c8327c95bb0c71b111ebf95723a35a478295c (patch) | |
tree | faea9db4b1bba00d73d33b2065ed102f88b76b2c /.emacs.local.d/modes/smex.el |
Add emacs config
Diffstat (limited to '.emacs.local.d/modes/smex.el')
-rw-r--r-- | .emacs.local.d/modes/smex.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.emacs.local.d/modes/smex.el b/.emacs.local.d/modes/smex.el new file mode 100644 index 0000000..d724452 --- /dev/null +++ b/.emacs.local.d/modes/smex.el @@ -0,0 +1,15 @@ +;; Debian packages: elpa-smex +;; Elpa packages: helm-smex + +(require 'smex) ; Not needed if you use package.el +(smex-initialize) ; Can be omitted. This might cause a (minimal) delay + ; when Smex is auto-initialized on its first run. + +(require 'helm-smex) +(global-set-key [remap execute-extended-command] #'helm-smex) +(global-set-key (kbd "M-X") #'helm-smex-major-mode-commands) + +;; (global-set-key (kbd "M-x") 'smex) +;; (global-set-key (kbd "M-X") 'smex-major-mode-commands) +;; This is your old M-x. +(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command) |