From 6982281404186e1a178a0f68d6b33d50e22f1f89 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 28 Oct 2019 14:00:42 -0400 Subject: [PATCH] Fix mouse-1 on buttons initiating a selection --- modules/editor/evil/config.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/editor/evil/config.el b/modules/editor/evil/config.el index 8949eb65e..5c9532c31 100644 --- a/modules/editor/evil/config.el +++ b/modules/editor/evil/config.el @@ -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 ()