diff options
| author | Ori <ori@oribarbut.com> | 2021-06-24 15:43:58 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-06-24 17:26:43 -0300 |
| commit | 2c96956b3b5d60ae25885f4fa06cbc98e567d263 (patch) | |
| tree | f9ffdd08415d2988ac941dea1103cbc3eddd6010 | |
| parent | 7406abf5e0596b7865e7fe31ef9e92727ed15c54 (diff) | |
emacs: Add compatibility for org-msg.el
Enable `notmuch-company` with `org-msg`, which does not derive from
`message-mode` in composing. This change was first proposed in the
discussion here:
https://github.com/jeremy-compostella/org-msg/issues/53
| -rw-r--r-- | NEWS | 2 | ||||
| -rw-r--r-- | emacs/notmuch-company.el | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -8,6 +8,8 @@ Emacs previous behaviour of using notmuch to send mail by default, customize `mail-user-agent` to `notmuch-user-agent`. +`notmuch-company` now works in `org-msg`. + Vim --- diff --git a/emacs/notmuch-company.el b/emacs/notmuch-company.el index c6a004ae..7e05dc8f 100644 --- a/emacs/notmuch-company.el +++ b/emacs/notmuch-company.el @@ -70,7 +70,8 @@ (completion-ignore-case t)) (cl-case command (interactive (company-begin-backend 'notmuch-company)) - (prefix (and (derived-mode-p 'message-mode) + (prefix (and (or (derived-mode-p 'message-mode) + (derived-mode-p 'org-msg-edit-mode)) (looking-back (concat notmuch-address-completion-headers-regexp ".*") (line-beginning-position)) |
