summary refs log tree commit diff stats
path: root/config.org
diff options
context:
space:
mode:
authorCase Duckworth2020-12-01 20:10:50 -0600
committerCase Duckworth2020-12-01 20:10:50 -0600
commit948810e6df323e68905c9850127a8f36d2e8f0ca (patch)
treeb7d3a8037054aace6e1943b374a2fde3c2a90352 /config.org
parentAdd dired-subtree (diff)
downloademacs-948810e6df323e68905c9850127a8f36d2e8f0ca.tar.gz
emacs-948810e6df323e68905c9850127a8f36d2e8f0ca.zip
Add mouse bindings for margin
Diffstat (limited to 'config.org')
-rw-r--r--config.org14
1 files changed, 12 insertions, 2 deletions
diff --git a/config.org b/config.org index 162db1b..681a4a6 100644 --- a/config.org +++ b/config.org
@@ -959,8 +959,6 @@ Configurations related to writing prose or verse.
959 959
960Center the text part of the frame within a =fill-column=-sized area in the frame as a whole. 960Center the text part of the frame within a =fill-column=-sized area in the frame as a whole.
961 961
962The one thing I need to fix: binding scrolling to =<left-margin> <mouse-4>= and friends.
963
964#+begin_src emacs-lisp 962#+begin_src emacs-lisp
965 (use-package visual-fill-column 963 (use-package visual-fill-column
966 :custom 964 :custom
@@ -975,6 +973,18 @@ The one thing I need to fix: binding scrolling to =<left-margin> <mouse-4>= and
975 (text-mode . visual-fill-column-mode)) 973 (text-mode . visual-fill-column-mode))
976#+end_src 974#+end_src
977 975
976*** Fix mouse bindings
977
978In =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.
979
980#+begin_src emacs-lisp
981 (bind-key [left-margin wheel-down] 'scroll-down-command)
982 (bind-key [right-margin wheel-down] 'scroll-down-command)
983
984 (bind-key [left-margin wheel-up] 'scroll-up-command)
985 (bind-key [right-margin wheel-up] 'scroll-up-command)
986#+end_src
987
978** [[https://orgmode.org/][org-mode]] 988** [[https://orgmode.org/][org-mode]]
979 989
980Pretty self-explanatory, I think... 990Pretty self-explanatory, I think...