From: Michael Heerdegen via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Binding key to insert an non-spacing acute accent
Date: Mon, 22 Jan 2024 04:59:50 +0100 [thread overview]
Message-ID: <87le8im30p.fsf@web.de> (raw)
In-Reply-To: 87a5oy3bm0.fsf@ucl.ac.uk
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> Now, however, I would love to be able to bind that to a key, e.g. M-'
> that I do not use for anything else normally, but I cannot seem to
> figure out how. I cannot see a way of definining any elisp to insert a
> specific non-spacing character. Any and all suggestions welcome!
Nothing special - just call `insert' as usual.
When the character is bound to `self-insert-command', you can also use a
key translation - e.g.
(define-key key-translation-map [(meta ?')] [?́])
or equivalent if you want to avoid unicode characters in your code:
(define-key key-translation-map [(meta ?')] [#o1401])
where #oNNNN is the octal number representing the character.
Michael.
next prev parent reply other threads:[~2024-01-22 3:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-21 16:16 Binding key to insert an non-spacing acute accent Eric S Fraga
2024-01-21 16:46 ` Rudolf Schlatte
2024-01-22 15:38 ` Eric S Fraga
2024-01-22 3:59 ` Michael Heerdegen via Users list for the GNU Emacs text editor [this message]
2024-01-22 15:37 ` Eric S Fraga
2024-01-23 17:12 ` Leo Butler
2024-01-23 21:11 ` Eric S Fraga
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=87le8im30p.fsf@web.de \
--to=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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.
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).