aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-07-26 02:00:32 +0200
committerGravatar Tom Willemse2016-07-26 02:00:32 +0200
commit807a630b9791046f42667d914cd6a9cb6f47a092 (patch)
tree4b60582529b21b410949f4acd72292dd8ac7311f
parent9d9ee0f80994cb503ede485f5b9716baaa3efdfc (diff)
downloadnew-dotfiles-807a630b9791046f42667d914cd6a9cb6f47a092.tar.gz
new-dotfiles-807a630b9791046f42667d914cd6a9cb6f47a092.zip
Add smex
-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: