help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding key to insert an non-spacing acute accent


From: Michael Heerdegen
Subject: Re: Binding key to insert an non-spacing acute accent
Date: Mon, 22 Jan 2024 04:59:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]