Mercurial > dotfiles
changeset 236:3e1ec121efaf
emacs: use smex as a replacement for execute-extended-command
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 18 Dec 2010 10:39:18 -0600 |
parents | 678ed4e870f1 |
children | b9f4d059eb69 |
files | .elisp/settings/00.bootstrap.el .elisp/settings/10.require.el .elisp/settings/90.keybindings.el |
diffstat | 3 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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))
--- 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)
--- 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)