* [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell
@ 2015-11-03 21:02 Michal Sojka
2015-11-09 14:59 ` Mark Walters
2015-11-10 12:36 ` David Bremner
0 siblings, 2 replies; 3+ messages in thread
From: Michal Sojka @ 2015-11-03 21:02 UTC (permalink / raw)
To: notmuch
Flyspell mode uses a special setting for message-mode to not
spell-check message headers except Subject. Apply this setting also to
notmuch-message-mode.
---
emacs/notmuch-mua.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index fd98ea4..466edd7 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -273,6 +273,8 @@ Note that these functions use `mail-citation-hook' if that is non-nil."
(when notmuch-address-command
(notmuch-address-setup)))
+(put 'notmuch-message-mode 'flyspell-mode-predicate 'mail-mode-flyspell-verify)
+
(define-key notmuch-message-mode-map (kbd "C-c C-c") #'notmuch-mua-send-and-exit)
(define-key notmuch-message-mode-map (kbd "C-c C-s") #'notmuch-mua-send)
--
2.5.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell
2015-11-03 21:02 [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell Michal Sojka
@ 2015-11-09 14:59 ` Mark Walters
2015-11-10 12:36 ` David Bremner
1 sibling, 0 replies; 3+ messages in thread
From: Mark Walters @ 2015-11-09 14:59 UTC (permalink / raw)
To: Michal Sojka, notmuch
This looks good to me +1.
Mark
On Tue, 03 Nov 2015, Michal Sojka <sojkam1@fel.cvut.cz> wrote:
> Flyspell mode uses a special setting for message-mode to not
> spell-check message headers except Subject. Apply this setting also to
> notmuch-message-mode.
> ---
> emacs/notmuch-mua.el | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index fd98ea4..466edd7 100644
> --- a/emacs/notmuch-mua.el
> +++ b/emacs/notmuch-mua.el
> @@ -273,6 +273,8 @@ Note that these functions use `mail-citation-hook' if that is non-nil."
> (when notmuch-address-command
> (notmuch-address-setup)))
>
> +(put 'notmuch-message-mode 'flyspell-mode-predicate 'mail-mode-flyspell-verify)
> +
> (define-key notmuch-message-mode-map (kbd "C-c C-c") #'notmuch-mua-send-and-exit)
> (define-key notmuch-message-mode-map (kbd "C-c C-s") #'notmuch-mua-send)
>
> --
> 2.5.3
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell
2015-11-03 21:02 [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell Michal Sojka
2015-11-09 14:59 ` Mark Walters
@ 2015-11-10 12:36 ` David Bremner
1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2015-11-10 12:36 UTC (permalink / raw)
To: notmuch
Michal Sojka <sojkam1@fel.cvut.cz> writes:
> Flyspell mode uses a special setting for message-mode to not
> spell-check message headers except Subject. Apply this setting also to
> notmuch-message-mode.
pushed,
d
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-10 12:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-03 21:02 [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell Michal Sojka
2015-11-09 14:59 ` Mark Walters
2015-11-10 12:36 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).