summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-12-02 23:54:58 -0600
committerCase Duckworth2020-12-02 23:54:58 -0600
commitef137766f73cecb38f48af22426189d410cf057d (patch)
treeed797ead00eb54a753a52863ef26e4908ca402ba
parentMake directories when tangling config.org (diff)
downloademacs-ef137766f73cecb38f48af22426189d410cf057d.tar.gz
emacs-ef137766f73cecb38f48af22426189d410cf057d.zip
Bind more mouse wheel margin bindings
I think I've caught all of 'em now.
-rw-r--r--config.org16
1 files changed, 11 insertions, 5 deletions
diff --git a/config.org b/config.org index bc0be3e..bad2d5e 100644 --- a/config.org +++ b/config.org
@@ -1000,11 +1000,17 @@ Center the text part of the frame within a =fill-column=-sized area in the frame
1000In =visual-fill-column-mode=, mouse bindings on the margins don't work. In fact, they don't work when /not/ in =visual-fill-column-mode=. Let's bind those bindings. 1000In =visual-fill-column-mode=, mouse bindings on the margins don't work. In fact, they don't work when /not/ in =visual-fill-column-mode=. Let's bind those bindings.
1001 1001
1002#+begin_src emacs-lisp 1002#+begin_src emacs-lisp
1003 (bind-key [left-margin wheel-down] 'scroll-down-command) 1003 (dolist (vec '([left-margin wheel-down]
1004 (bind-key [right-margin wheel-down] 'scroll-down-command) 1004 [left-margin mouse-5]
1005 1005 [right-margin wheel-down]
1006 (bind-key [left-margin wheel-up] 'scroll-up-command) 1006 [right-margin mouse-5]))
1007 (bind-key [right-margin wheel-up] 'scroll-up-command) 1007 (bind-key vec 'scroll-down-command))
1008
1009 (dolist (vec '([left-margin wheel-up]
1010 [left-margin mouse-4]
1011 [right-margin wheel-up]
1012 [right-margin mouse-4]))
1013 (bind-key vec 'scroll-up-command))
1008#+end_src 1014#+end_src
1009 1015
1010** [[https://orgmode.org/][org-mode]] 1016** [[https://orgmode.org/][org-mode]]