jed-users mailing list

[2017 Date Index] [2017 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[jed-users] Re: Typing unicode symbols directly


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]