summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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...