From c6766c293d7404eacb1ad9f7a0c1c851192784cd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 5 Aug 2020 18:06:06 -0400 Subject: [PATCH] C-down-mouse-2 -> reset text-scale Make this universal. Also removes redundant C-mouse-{4,5} mouse bindings, they're already bound by mouse-wheel-mode. --- modules/config/default/+emacs-bindings.el | 3 --- modules/config/default/config.el | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/config/default/+emacs-bindings.el b/modules/config/default/+emacs-bindings.el index c21458002..d239d67e4 100644 --- a/modules/config/default/+emacs-bindings.el +++ b/modules/config/default/+emacs-bindings.el @@ -418,9 +418,6 @@ (map! "C-'" #'imenu ;;; Text scaling - [C-mouse-4] #'text-scale-increase - [C-mouse-5] #'text-scale-decrease - [C-down-mouse-2] (cmd! (text-scale-set 0)) "M-+" #'doom/reset-font-size "M-=" #'doom/increase-font-size "M--" #'doom/decrease-font-size diff --git a/modules/config/default/config.el b/modules/config/default/config.el index d55bbebaf..f6f195fcb 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -427,6 +427,11 @@ Continues comments if executed from a commented line. Consults ;; which ctrl+RET will add a new "item" below the current one and ;; cmd+RET (Mac) / meta+RET (elsewhere) will add a new, blank line below ;; the current one. + + ;; C- = text scale increase + ;; C- = text scale decrease + [C-down-mouse-2] (cmd! (text-scale-set 0)) + ;; auto-indent on newline by default :gi [remap newline] #'newline-and-indent ;; insert literal newline