From b35cbb9eb7cb16b3ebdc0d47062b9dec5376d6ab Mon Sep 17 00:00:00 2001 From: Peng Li Date: Mon, 25 Jul 2016 14:19:10 +0800 Subject: [PATCH] emacs - remap C-SPC to expand hydra --- emacs.d/config.org | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.11.0