From 500004f42d3126648187319eb41b211d2c3ac1af Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 28 May 2019 21:38:08 -0400 Subject: [PATCH] emacs: add a few global mouse-based bindings for convenience --- .emacs.d/init.el | 9 +++++++++ 1 file changed, 9 insertions(+) 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 @@ -486,6 +486,15 @@ For disabling the behaviour for certain buffers and/or modes." (when (display-graphic-p) (unbind-key "C-z" global-map)) +(bind-keys + ;; for back and forward mouse keys + ("" . previous-buffer) + ("" . previous-buffer) + ("" . next-buffer) + ("" . next-buffer) + ("" . kill-this-buffer) + ("" . ivy-switch-buffer)) + (bind-keys :prefix-map a/straight-prefix-map :prefix "C-c p s" -- 2.20.1