aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--emacs/.emacs.d/init.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 7620d4a..f861ff9 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -195,6 +195,16 @@ This is currently the data directory under the
(ido-mode)
+;; Add smex, an ido-like M-x alternative
+
+(ensure-library smex)
+
+(with-eval-after-load 'smex
+ (setq smex-save-file (oni:data-location "smex-items")))
+
+(global-set-key (kbd "M-x") 'smex)
+(global-set-key (kbd "M-X") 'smex-major-mode-commands)
+
;;;; Minor modes:
;;;;; Paredit: