unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Manuel Uberti <manuel.uberti@inventati.org>
Cc: emacs-devel@gnu.org
Subject: Re: New define-key syntax with custom keymap
Date: Tue, 19 Oct 2021 16:14:47 +0200	[thread overview]
Message-ID: <87bl3ldru0.fsf@gnus.org> (raw)
In-Reply-To: <67e1333f-a339-2fc1-271b-40a860bf3edd@inventati.org> (Manuel Uberti's message of "Tue, 19 Oct 2021 15:59:07 +0200")

Manuel Uberti <manuel.uberti@inventati.org> writes:

> Because if I evaluate:
>
> (define-key mu-keys-mode-map ["C-c C-n"] #'mu-cleanup-buffer)
>
> it works for me as well. But upon restart C-c C-n is not bound to anything.

I'm not sure I understand what you mean.  `define-key' only works in the
current session -- what it does isn't saved anywhere (no matter what
syntax you use for the key binding).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



  reply	other threads:[~2021-10-19 14:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-19  5:53 New define-key syntax with custom keymap Manuel Uberti
2021-10-19 13:52 ` Lars Ingebrigtsen
2021-10-19 13:54   ` Manuel Uberti
2021-10-19 13:59   ` Manuel Uberti
2021-10-19 14:14     ` Lars Ingebrigtsen [this message]
2021-10-19 14:19       ` Manuel Uberti
2021-10-19 14:22         ` Lars Ingebrigtsen
2021-10-19 14:27           ` Manuel Uberti
2021-10-19 14:32             ` Lars Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
2021-11-23  6:51 Manuel Uberti

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://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bl3ldru0.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=manuel.uberti@inventati.org \
    /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://git.savannah.gnu.org/cgit/emacs.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).