From: edef <edef@edef.eu>
To: "Tomi Ollila" <tomi.ollila@iki.fi>
Cc: notmuch@notmuchmail.org
Subject: Re: [PATCH] emacs: remap send-message and send-message-and-exit
Date: Fri, 04 Jun 2021 16:50:38 +0000 [thread overview]
Message-ID: <b3994223-5c5c-411c-9570-8b1efbc3fad0@www.fastmail.com> (raw)
In-Reply-To: <m2r1hkm6lp.fsf@guru.guru-group.fi>
> > (defvar notmuch-message-mode-map
> > (let ((map (make-sparse-keymap)))
> > - (define-key map (kbd "C-c C-c") #'notmuch-mua-send-and-exit)
> > - (define-key map (kbd "C-c C-s") #'notmuch-mua-send)
> > + (define-key map [remap message-send-and-exit] 'notmuch-mua-send-and-exit)
> > + (define-key map [remap message-send] 'notmuch-mua-send)
>
> where did the # characters disappear here ?
>
> afaic #' is the recommended way here...
I'm not sure where to find that recommendation — the Emacs manual and
information I've found in the wild don't use it for define-key.
next prev parent reply other threads:[~2021-06-04 17:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-30 10:28 [PATCH] emacs: rebind the "Send Message" toolbar/menu items edef
2021-05-31 23:21 ` David Bremner
2021-06-01 6:15 ` [PATCH] emacs: remap send-message and send-message-and-exit edef
2021-06-02 19:03 ` Tomi Ollila
2021-06-04 16:50 ` edef [this message]
2021-06-07 16:09 ` Tomi Ollila
2021-06-13 8:23 ` [PATCH v2] " edef
2021-06-27 17:25 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b3994223-5c5c-411c-9570-8b1efbc3fad0@www.fastmail.com \
--to=edef@edef.eu \
--cc=notmuch@notmuchmail.org \
--cc=tomi.ollila@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).