Notmuch uses long options exclusively all around. The short options in
notmuch-emacs-mua are intentionally just a compatible subset of
mutt(1). Keep it this way, if only to make documenting the fact easy!
The Notmuch style --client long option remains, of course.
``-h, --help``
Display help.
``-h, --help``
Display help.
Use emacsclient, rather than emacs. This will start
an emacs daemon process if necessary.
Use emacsclient, rather than emacs. This will start
an emacs daemon process if necessary.
ELISP="(prog1 'done (require 'notmuch) (notmuch-mua-new-mail)"
ELISP="${ELISP} (setq message-exit-actions (list #'save-buffers-kill-terminal))"
ELISP="(prog1 'done (require 'notmuch) (notmuch-mua-new-mail)"
ELISP="${ELISP} (setq message-exit-actions (list #'save-buffers-kill-terminal))"
-while getopts :s:c:b:i:hC opt; do
+# Short options compatible with mutt(1).
+while getopts :s:c:b:i:h opt; do
# Handle errors and long options.
case "${opt}" in
:)
# Handle errors and long options.
case "${opt}" in
:)
--help|h)
exec man notmuch-emacs-mua
;;
--help|h)
exec man notmuch-emacs-mua
;;
USE_EMACSCLIENT="yes"
;;
--subject|s)
USE_EMACSCLIENT="yes"
;;
--subject|s)