- Subject: [jed-users] Re: Typing unicode symbols directly
- From: Morten Bo Johansen <mbj@xxxxxxxxxxx>
- Date: Thu, 16 Mar 2017 15:48:48 +0100
On 2017-03-16 Bernhard Seckinger wrote:
> I can insert unicode symbols with copy&paste. But I wonder if
> it's possible to type them in somehow. E.g. if I know it's no.
> 8598 (arrow pointing top left) typing (in emacs mode) something
> like ESC-8-5-9-8-C^X (which doesn't work of course).
Something simple like this might suit you?
Insert in your .jedrc:
%% At the prompt, enter a decimal code for a character and type
%% <enter> to have it inserted into the buffer.
define ins_char_for_keycode ()
{
variable code = read_mini ("key code:", "", "");
insert_char (integer (code));
}
define keybindings_hook (name)
{
if (name == "emacs")
{
setkey_reserved ("ins_char_for_keycode", "c");
}
}
With emacs emulation the function would then be invoked with
"ctrl-c c".
I would also point you to Günter Mildes "ch_table" from jedmodes:
http://jedmodes.sourceforge.net/mode/ch_table/
Morten
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
[2017 date index]
[2017 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]