Fix mouse-1 on buttons initiating a selection

This commit is contained in:
Henrik Lissner 2019-10-28 14:00:42 -04:00
parent f18caa1518
commit 6982281404
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -67,6 +67,9 @@ directives. By default, this only recognizes C directives.")
;; Start help-with-tutorial in emacs state
(advice-add #'help-with-tutorial :after (lambda (&rest _) (evil-emacs-state +1)))
;; Allows you to click buttons without initiating a selection
(define-key evil-motion-state-map [down-mouse-1] nil)
;; Done in a hook to ensure the popup rules load as late as possible
(add-hook! 'doom-init-modules-hook
(defun +evil--init-popup-rules-h ()