From e49ab3f57ff2a14b469327b2ef3069d020888b3e Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 27 Aug 2017 22:14:10 +0100 Subject: [PATCH] Add some futher convenient key-bindings --- modules/editing.el | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/modules/editing.el b/modules/editing.el index 9af3d21..e8b2d8e 100644 --- a/modules/editing.el +++ b/modules/editing.el @@ -22,7 +22,8 @@ highlight-parentheses whole-line-or-region duplicate-thing - volatile-highlights) + volatile-highlights + expand-region) ) @@ -36,7 +37,14 @@ (use-package duplicate-thing :defer t - :bind (("M-c" . duplicate-thing))) + :bind (("M-C" . duplicate-thing))) + + ;; -------------------------------------------------------------------------- + ;; Expand region - intelligent select. + ;; -------------------------------------------------------------------------- + (use-package expand-region + :defer t + :bind (("C-'" . er/expand-region))) ;; -------------------------------------------------------------------------- ;; Volatile highlights - highlight changes caused by undo, yank, etc. @@ -210,4 +218,8 @@ ;; Occur. More convenient than "M-s o" (global-set-key (kbd "M-s M-o") 'occur) + ;; Scroll up/down. + (global-set-key (kbd "C-<") (lambda() (interactive) (scroll-down 1))) + (global-set-key (kbd "C->") (lambda() (interactive) (scroll-up 1))) + )