Skip to content

Commit

Permalink
Don't activate org-msg mode when replying to icalendar event
Browse files Browse the repository at this point in the history
  • Loading branch information
jumper047 authored and jeremy-compostella committed May 30, 2023
1 parent 7b1dfb9 commit 055de4a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions org-msg.el
Original file line number Diff line number Diff line change
Expand Up @@ -1391,8 +1391,11 @@ This function is used as an advice function of
(defun org-msg-mode-mu4e ()
"Setup the hook for mu4e mail user agent."
(if org-msg-mode
(add-hook 'mu4e-compose-mode-hook 'org-msg-post-setup)
(remove-hook 'mu4e-compose-mode-hook 'org-msg-post-setup)))
(progn (add-hook 'mu4e-compose-mode-hook 'org-msg-post-setup)
(advice-add 'mu4e-icalendar-reply
:around #'org-msg-inhibited))
(remove-hook 'mu4e-compose-mode-hook 'org-msg-post-setup)
(advice-remove 'mu4e-icalendar-reply 'org-msg-inhibited)))

(defun org-msg-mode-notmuch ()
"Setup the hook for notmuch mail user agent."
Expand Down

0 comments on commit 055de4a

Please sign in to comment.