summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-10-05 21:34:36 -0400
committerKyle Meyer <kyle@kyleam.com>2017-10-05 21:34:36 -0400
commit6da6164c74820fe49852f899f683df8f1b51114c (patch)
tree65d7d870d983ddb12655613acdb2cd45080cf027
parentbfa4630ae4ba348d036ab5fdd9c88c0c28a0a5a8 (diff)
downloademacs.d-6da6164c74820fe49852f899f683df8f1b51114c.tar.gz
Move {beginning,end}-of-buffer to more comfortable bindings
-rw-r--r--init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/init.el b/init.el
index 0bb399f..9da63e0 100644
--- a/init.el
+++ b/init.el
@@ -460,6 +460,13 @@
(global-set-key (kbd "M-{") nil)
(global-set-key (kbd "M-[") #'backward-paragraph)
+;; Swap bindings for scroll-{left,right} and
+;; {beginning,end}-of-buffer.
+(global-set-key (kbd "M-<") #'scroll-left)
+(global-set-key (kbd "C-x <") #'beginning-of-buffer)
+(global-set-key (kbd "M->") #'scroll-right)
+(global-set-key (kbd "C-x >") #'end-of-buffer)
+
(global-set-key (kbd "C-z") #'zap-to-char)
(use-package misc
:bind ("M-z" . zap-up-to-char))