aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d/modes/smex.el
blob: d724452b15c739186f58116851089089e927883a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)
nihil fit ex nihilo