* [PATCH] doc/emacs: start a section on notmuch-message-mode
@ 2024-08-14 0:08 David Bremner
2024-08-14 10:57 ` [PATCH] emacs/doc: start subsection on message level actions David Bremner
0 siblings, 1 reply; 2+ messages in thread
From: David Bremner @ 2024-08-14 0:08 UTC (permalink / raw)
To: notmuch
This is mostly just copying docstrings, but putting them into sections
makes them more discoverable.
---
doc/conf.py | 2 +-
doc/notmuch-emacs.rst | 57 ++++++++++++++++++++++++++++++++++++-------
2 files changed, 49 insertions(+), 10 deletions(-)
diff --git a/doc/conf.py b/doc/conf.py
index ee1b336a..5270011d 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -47,7 +47,7 @@ if tags.has('WITH_EMACS'):
# Hacky reimplementation of include to workaround limitations of
# sphinx-doc
lines = ['.. include:: /../emacs/rstdoc.rsti\n\n'] # in the source tree
- for file in ('notmuch.rsti', 'notmuch-lib.rsti', 'notmuch-hello.rsti', 'notmuch-show.rsti', 'notmuch-tag.rsti', 'notmuch-tree.rsti'):
+ for file in ('notmuch.rsti', 'notmuch-lib.rsti', 'notmuch-hello.rsti', 'notmuch-show.rsti', 'notmuch-tag.rsti', 'notmuch-tree.rsti', 'notmuch-maildir-fcc.rsti'):
lines.extend(open(rsti_dir+'/'+file))
rst_epilog = ''.join(lines)
del lines
diff --git a/doc/notmuch-emacs.rst b/doc/notmuch-emacs.rst
index 91af6d14..48f87458 100644
--- a/doc/notmuch-emacs.rst
+++ b/doc/notmuch-emacs.rst
@@ -671,6 +671,54 @@ Keybindings are the same as :any:`notmuch-tree`.
See also :el:defcustom:`notmuch-search-result-format` and
:el:defcustom:`notmuch-tree-result-format`.
+notmuch-message
+===============
+
+Notmuch uses a slighly customized version of the standard emacs email
+composition mode info:message.
+
+.. _notmuch-emacs-drafts:
+
+Drafts
+------
+
+.. el:define-key:: C-x C-p
+ M-x notmuch-draft-postpone
+
+ Postpone (save and bury) a draft.
+
+.. el:define-key:: C-x C-s
+ M-x notmuch-draft-save
+
+ Save a draft and continue editing.
+
+.. _notmuch-emacs-replies:
+
+.. _notmuch-emacs-fcc:
+
+Fcc
+---
+
+.. el:defcustom:: notmuch-fcc-dirs
+
+ |docstring::notmuch-fcc-dirs|
+
+.. el:defcustom:: notmuch-maildir-use-notmuch-insert
+
+ |docstring::notmuch-maildir-use-notmuch-insert|
+
+Replies
+-------
+
+.. el:defcustom:: message-dont-reply-to-names
+
+ When composing mail replies, Emacs's message mode uses the
+ variable :code:`message-dont-reply-to-names` to exclude
+ recipients matching a given collection of regular expressions
+ or satisfying an arbitrary predicate. Notmuch's MUA inherits
+ this standard mechanism and will honour your customization of
+ this variable.
+
Global key bindings
===================
@@ -770,15 +818,6 @@ Sending Mail
:code:`compose-mail`. To use ``notmuch`` for this, customize this
variable to the symbol :code:`notmuch-user-agent`.
-.. el:defcustom:: message-dont-reply-to-names
-
- When composing mail replies, Emacs's message mode uses the
- variable :code:`message-dont-reply-to-names` to exclude
- recipients matching a given collection of regular expressions
- or satisfying an arbitrary predicate. Notmuch's MUA inherits
- this standard mechanism and will honour your customization of
- this variable.
-
Init File
---------
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] emacs/doc: start subsection on message level actions
2024-08-14 0:08 [PATCH] doc/emacs: start a section on notmuch-message-mode David Bremner
@ 2024-08-14 10:57 ` David Bremner
0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2024-08-14 10:57 UTC (permalink / raw)
To: David Bremner, notmuch
In particular this gives a place for documenting how to resume editing
drafts.
---
doc/notmuch-emacs.rst | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/doc/notmuch-emacs.rst b/doc/notmuch-emacs.rst
index bf862697..9c2dab47 100644
--- a/doc/notmuch-emacs.rst
+++ b/doc/notmuch-emacs.rst
@@ -357,6 +357,42 @@ The following motion/navigation bindings are also available in
Move to previous matching message
+Actions
+-------
+
+The following actions on messages are also available in
+:ref:`notmuch-tree` and :ref:`notmuch-unthreaded`.
+
+.. el:define-key:: b
+ M-x notmuch-show-resend-message
+
+ Resend (*bounce*) message.
+
+.. el:define-key:: e
+
+ Resume *editing* a message in :ref:`notmuch-message`. This is
+ particularly useful for :ref:`notmuch-emacs-drafts`, but can be
+ used for other messages as well.
+
+.. el:define-key:: f
+ M-x notmuch-show-forward-message
+
+ Forward (as a MIME attachment) message
+
+.. el:define-key:: r
+ M-x notmuch-show-reply-to-sender
+
+ Reply to sender (only) using :ref:`notmuch-message`
+
+.. el:define-key:: w
+ M-x notmuch-show-save-attachments
+
+ |docstring::notmuch-show-save-attachments|
+
+.. el:define-key:: R
+ M-x notmuch-show-reply
+
+ |docstring::notmuch-show-reply|
Configuration
-------------
@@ -667,6 +703,8 @@ Keybindings are the same as :any:`notmuch-tree`.
See also :el:defcustom:`notmuch-search-result-format` and
:el:defcustom:`notmuch-tree-result-format`.
+.. _notmuch-message:
+
notmuch-message
===============
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-14 10:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-14 0:08 [PATCH] doc/emacs: start a section on notmuch-message-mode David Bremner
2024-08-14 10:57 ` [PATCH] emacs/doc: start subsection on message level actions 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).