From: Peng Li Date: Mon, 25 Jul 2016 06:19:10 +0000 (+0800) Subject: emacs - remap C-SPC to expand hydra X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=b35cbb9eb7cb16b3ebdc0d47062b9dec5376d6ab;p=dotfiles.git emacs - remap C-SPC to expand hydra --- diff --git a/emacs.d/config.org b/emacs.d/config.org index 06baf8c..16841b9 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -2566,10 +2566,11 @@ stolen from [[https://github.com/mariolong/emacs.d/blob/f6a061594ef1b5d1f4750e9d ("C-SPC" nil "quit" :exit t) ("q" nil "quit" :exit t)) - (global-set-key (kbd "M-SPC") (lambda () - (interactive) - (er/mark-word) - (sd/expand-selected/body))) + (global-set-key (kbd "C-SPC") (lambda () + (interactive) + (set-mark-command nil) + (er/mark-word) + (sd/expand-selected/body))) #+END_SRC *** TODO make expand-region hydra work with lispy selected