mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
I mostly use C-x C-m instead of M-x as I for some reason find it less annoying to type. I really like helm-command's helm-M-x function, but I find slightly too slow and slightly too intrusive than smex. Hence I'm switching back my main keybinding to smex, but still leaving helm-M-x bound to the M-x keybinding I use very rarely, just so I can still access it when I need to.
22 lines
432 B
EmacsLisp
22 lines
432 B
EmacsLisp
;;; siren-smex.el --- jimeh's Emacs Siren: smex.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Replace M-x with the more powerful smex.
|
|
|
|
;;; Code:
|
|
|
|
(use-package smex
|
|
:bind
|
|
("C-x C-m" . smex)
|
|
("C-c C-m" . smex)
|
|
("M-X" . smex-major-mode-commands)
|
|
("C-c C-c M-x" . execute-extended-command)
|
|
|
|
:config
|
|
(setq smex-save-file (expand-file-name ".smex-items" siren-savefile-dir))
|
|
(smex-initialize))
|
|
|
|
(provide 'siren-smex)
|
|
;;; siren-smex.el ends here
|