summaryrefslogtreecommitdiff
path: root/modules/system-defaults.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system-defaults.el')
-rw-r--r--modules/system-defaults.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/system-defaults.el b/modules/system-defaults.el
index b984b78c2..c52b3e041 100644
--- a/modules/system-defaults.el
+++ b/modules/system-defaults.el
@@ -142,15 +142,16 @@ Return non-nil to indicate the warning was handled."
;; disabling mouse prevents accidental mouse moves modifying text
(use-package inhibit-mouse
- :commands inhibit-mouse-mode
:hook (after-init . inhibit-mouse-mode)
:custom
(inhibit-mouse-adjust-mouse-highlight t)
(inhibit-mouse-adjust-show-help-function t)
+ :bind
+ ("C-c M-m" . inhibit-mouse-mode) ;; toggle with C-c M-m
:config
(if (daemonp)
- (add-hook 'server-after-make-frame-hook #'inhibit-mouse-mode)
- (inhibit-mouse-mode 1)))
+ (add-hook 'server-after-make-frame-hook #'inhibit-mouse-mode)
+ (inhibit-mouse-mode 1)))
;; ------------------------------- Be Quiet(er)! -------------------------------
;; reduces "helpful" instructions that distract Emacs power users.