Skip to content

Commit

Permalink
refactor(mu4e): rename hook functions
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jul 22, 2023
1 parent 918256a commit 73a0a06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/extras/me-mu4e-extras.el
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ If SKIP-HEADERS is set, do not show include message headers."
(mm-destroy-parts parts)))))

(defun +mu4e-extras-locks-setup ()
(advice-add 'mu4e--server-kill :after (defun +mu4e--unlock (&rest _) (+unlock 'mu)))
(advice-add 'mu4e--server-start :after (defun +mu4e--lock (&rest _) (+lock 'mu))))
(advice-add 'mu4e--server-kill :after (defun +mu4e--unlock-h (&rest _) (+unlock 'mu)))
(advice-add 'mu4e--server-start :after (defun +mu4e--lock-h (&rest _) (+lock 'mu))))

(defun +mu4e-extras-setup ()
(add-hook 'mu4e-compose-mode-hook '+mu4e--auto-bcc-h)
Expand Down

0 comments on commit 73a0a06

Please sign in to comment.