# HG changeset patch # User Augie Fackler # Date 1292690358 21600 # Node ID 3e1ec121efafbd59ce7ddeccc19d56538fde3779 # Parent 678ed4e870f1a97f852021f4d4b196f68dd2d2ff emacs: use smex as a replacement for execute-extended-command diff --git a/.elisp/settings/00.bootstrap.el b/.elisp/settings/00.bootstrap.el --- a/.elisp/settings/00.bootstrap.el +++ b/.elisp/settings/00.bootstrap.el @@ -22,6 +22,7 @@ js2-mode magit paredit + smex yaml-mode)) (unless (or (member pack package-activated-list) (functionp pack)) diff --git a/.elisp/settings/10.require.el b/.elisp/settings/10.require.el --- a/.elisp/settings/10.require.el +++ b/.elisp/settings/10.require.el @@ -4,6 +4,8 @@ (setq ido-enable-flex-matching t) (ido-mode t) +(smex-initialize) + ;; Python (require 'python-mode) (require 'ipython) diff --git a/.elisp/settings/90.keybindings.el b/.elisp/settings/90.keybindings.el --- a/.elisp/settings/90.keybindings.el +++ b/.elisp/settings/90.keybindings.el @@ -26,7 +26,8 @@ (global-set-key [(meta j)] 'textmate-goto-symbol) ;; commit emacs heresy? -(global-set-key [(meta r)] 'execute-extended-command) +(global-set-key [(meta r)] 'smex) +(global-set-key (kbd "M-R") 'smex-major-mode-commands) ;; Mac-like keybindings for undo/cut/copy/paste (global-set-key [(meta c)] 'kill-ring-save)