diff options
author | Amin Bandali <bandali@gnu.org> | 2019-05-28 21:38:08 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-05-28 21:38:08 -0400 |
commit | 500004f42d3126648187319eb41b211d2c3ac1af (patch) | |
tree | 316c23453b4f1dcfef4b2e3c940eb98b5376599b | |
parent | 9b09aeaf819ded0e871df4acfbff885e437bdcd1 (diff) | |
download | configs-500004f42d3126648187319eb41b211d2c3ac1af.tar.gz configs-500004f42d3126648187319eb41b211d2c3ac1af.tar.xz configs-500004f42d3126648187319eb41b211d2c3ac1af.zip |
emacs: add a few global mouse-based bindings for convenience
Diffstat (limited to '')
-rw-r--r-- | .emacs.d/init.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 25a8ada..b67efd0 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -487,6 +487,15 @@ For disabling the behaviour for certain buffers and/or modes." (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" ("u" . straight-use-package) |