From: Andreas Gerler Date: Mon, 6 Apr 2015 09:56:24 +0000 (+0200) Subject: Rebound expand-region as key-chord -- and == are a bad choice. C-c f11 and C-c f12... X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=1a972ee52d83cf7f564c7fd48168a001da42ba31;p=emacsconfig.git Rebound expand-region as key-chord -- and == are a bad choice. C-c f11 and C-c f12 are way better. Signed-off-by: Andreas Gerler --- diff --git a/bba.org b/bba.org index b3af4947..84146e52 100644 --- a/bba.org +++ b/bba.org @@ -153,7 +153,8 @@ See [[https://github.com/toctan/smartparens][Smartparens on github]]. (progn (add-to-list 'load-path "~/.emacs.d/elpa/expand-region-20141223.1328") (require 'expand-region) - (global-set-key (kbd "C-=") 'er/expand-region) + (define-key global-map (kbd "C-c ") 'er/contract-region ) + (define-key global-map (kbd "C-c ") 'er/expand-region ) )) #+END_SRC @@ -1315,8 +1316,6 @@ combine key strokes to access commands even faster. (key-chord-define-global "xf" 'ido-find-file) (if (>= emacs-major-version 24) (progn - (key-chord-define-global "==" 'er/expand-region) - (key-chord-define-global "--" 'er/contract-region) ))