summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-09-01 21:00:00 -0400
committerAmin Bandali <bandali@gnu.org>2019-09-01 21:00:00 -0400
commit0365678c8777dd0b360ddaa4315b4b47394c8949 (patch)
treedf6bce756cd2b177a605abd6f68b0e5de0299ed0
parenta71a12e16a9d94484e15141b4dea7f37f4091abd (diff)
downloadconfigs-0365678c8777dd0b360ddaa4315b4b47394c8949.tar.gz
configs-0365678c8777dd0b360ddaa4315b4b47394c8949.tar.xz
configs-0365678c8777dd0b360ddaa4315b4b47394c8949.zip
emacs: tweak some bindings
-rw-r--r--.emacs.d/init.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 8f98696..0841cad 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -513,8 +513,10 @@ For disabling the behaviour for certain buffers and/or modes."
(bind-keys
;; for back and forward mouse keys
+ ("<XF86Back>" . previous-buffer)
("<mouse-8>" . previous-buffer)
("<drag-mouse-8>" . previous-buffer)
+ ("<XF86Forward>" . next-buffer)
("<mouse-9>" . next-buffer)
("<drag-mouse-9>" . next-buffer)
("<drag-mouse-2>" . kill-this-buffer)
@@ -1665,9 +1667,13 @@ This function is intended for use with `ivy-ignore-buffers'."
(use-package pdf-tools
:defer 0.5
:bind (:map pdf-view-mode-map
- ("<XF86Back>" . pdf-history-backward)
- ("<XF86Forward>" . pdf-history-forward)
- ("M-RET" . image-previous-line))
+ ("<C-XF86Back>" . pdf-history-backward)
+ ("<mouse-8>" . pdf-history-backward)
+ ("<drag-mouse-8>" . pdf-history-backward)
+ ("<C-XF86Forward>" . pdf-history-forward)
+ ("<mouse-9>" . pdf-history-forward)
+ ("<drag-mouse-9>" . pdf-history-forward)
+ ("M-RET" . image-previous-line))
:config (pdf-tools-install nil t)
:custom (pdf-view-resize-factor 1.05))