diff options
| author | James Nguyen <james@jojojames.com> | 2021-02-03 00:42:24 -0800 |
|---|---|---|
| committer | James N <james@jojojames.com> | 2021-02-03 21:08:35 -0800 |
| commit | a3f8d1b4c99028d2c2542386916964f1e6de11b1 (patch) | |
| tree | 4920a033acf70f45f6eecf81d3b4e49d46a3c635 /modes/mu4e | |
| parent | e52dfbeb68225beb4e0eabb60a052f5748db8244 (diff) | |
Refactor menu-items to use evil-collection-define-operator-key
Diffstat (limited to 'modes/mu4e')
| -rw-r--r-- | modes/mu4e/evil-collection-mu4e.el | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/modes/mu4e/evil-collection-mu4e.el b/modes/mu4e/evil-collection-mu4e.el index 784aa16..380a6e7 100644 --- a/modes/mu4e/evil-collection-mu4e.el +++ b/modes/mu4e/evil-collection-mu4e.el @@ -259,15 +259,10 @@ "G" 'mu4e-compose-goto-bottom) (evil-set-command-property 'mu4e-compose-goto-bottom :keep-visual t) (evil-set-command-property 'mu4e-compose-goto-top :keep-visual t) - (evil-collection-define-key 'operator 'mu4e-view-mode-map - "u" '(menu-item - "" - nil - :filter (lambda (&optional _) - (when (memq evil-this-operator - '(evil-yank evil-cp-yank evil-sp-yank lispyville-yank)) - (setq evil-inhibit-operator t) - #'mu4e-view-save-url))))) + + ;; yu + (evil-collection-define-operator-key 'mu4e-view-mode-map + "u" 'mu4e-view-save-url)) ;;; Update mu4e-main-view |
