projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9b09aea
)
emacs: add a few global mouse-based bindings for convenience
author
Amin Bandali
<bandali@gnu.org>
Wed, 29 May 2019 01:38:08 +0000
(21:38 -0400)
committer
Amin Bandali
<bandali@gnu.org>
Wed, 29 May 2019 01:38:08 +0000
(21:38 -0400)
.emacs.d/init.el
patch
|
blob
|
blame
|
history
diff --git
a/.emacs.d/init.el
b/.emacs.d/init.el
index
25a8ada
..
b67efd0
100644
(file)
--- a/
.emacs.d/init.el
+++ b/
.emacs.d/init.el
@@
-486,6
+486,15
@@
For disabling the behaviour for certain buffers and/or modes."
(when (display-graphic-p)
(unbind-key "C-z" global-map))
(when (display-graphic-p)
(unbind-key "C-z" global-map))
+(bind-keys
+ ;; for back and forward mouse keys
+ ("<mouse-8>" . previous-buffer)
+ ("<drag-mouse-8>" . previous-buffer)
+ ("<mouse-9>" . next-buffer)
+ ("<drag-mouse-9>" . next-buffer)
+ ("<drag-mouse-2>" . kill-this-buffer)
+ ("<drag-mouse-3>" . ivy-switch-buffer))
+
(bind-keys
:prefix-map a/straight-prefix-map
:prefix "C-c p s"
(bind-keys
:prefix-map a/straight-prefix-map
:prefix "C-c p s"