summaryrefslogtreecommitdiff
path: root/modules/wip.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/wip.el')
-rw-r--r--modules/wip.el35
1 files changed, 0 insertions, 35 deletions
diff --git a/modules/wip.el b/modules/wip.el
index 0fae57e3..6c7c8845 100644
--- a/modules/wip.el
+++ b/modules/wip.el
@@ -70,41 +70,6 @@
:bind ("M-p" . pomm)
:commands (pomm pomm-third-time))
-;; ------------------------------ Mouse Trap Mode ------------------------------
-
-(defvar mouse-trap-mode-map
- (let* ((prefixes '("" "C-" "M-" "S-" "C-M-" "C-S-" "M-S-" "C-M-S-")) ; modifiers
- (buttons (number-sequence 1 5)) ; mouse-1..5
- (types '("mouse" "down-mouse" "drag-mouse"
- "double-mouse" "triple-mouse"))
- (wheel '("wheel-up" "wheel-down" "wheel-left" "wheel-right"))
- (map (make-sparse-keymap)))
- ;; clicks, drags, double, triple
- (dolist (type types)
- (dolist (pref prefixes)
- (dolist (n buttons)
- (define-key map (kbd (format "<%s%s-%d>" pref type n)) #'ignore))))
- ;; wheel
- (dolist (evt wheel)
- (dolist (pref prefixes)
- (define-key map (kbd (format "<%s%s>" pref evt)) #'ignore)))
- map)
- "Keymap for `mouse-trap-mode'. Unbinds almost every mouse event.
-
-Disabling mouse prevents accidental mouse moves modifying text.")
-
-(define-minor-mode mouse-trap-mode
- "Globally disable most mouse and trackpad events.
-
-When active, <mouse-*>, <down-mouse-*>, <drag-mouse-*>,
-<double-mouse-*>, <triple-mouse-*>, and wheel events are bound to `ignore',
-with or without C-, M-, S- modifiers."
- :global t
- :lighter " 🐭"
- :keymap mouse-trap-mode-map)
-(global-set-key (kbd "C-c M") #'mouse-trap-mode)
-(mouse-trap-mode 1)
-
;; --------------------- Debug Code For Package Signatures ---------------------
;; from https://emacs.stackexchange.com/questions/233/how-to-proceed-on-package-el-signature-check-failure