jed-users mailing list

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

Re: [Jed-users-l] key binding & arrow keys


On Mon, Jul 25, 2011 at 5:06 AM, Ulli Horlacher
<framstag@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Sat 2011-07-23 (11:50), Mike Ma wrote:
>
>> For change buffers quickly, a friend gives me:
>> unsetkey ("\eOC");
>> setkey ("next_buffer", "\eOC");
>> It can bind right arrow to "next_buffer".
>
> Great idea!
>
>
>> Another question: Does jed have previous_buffer function?
>
> next_buffer() is in buf.sl, but there is no previous_buffer()
>
> So I have modified next_buffer() to:
>

I did the same, but I took it from Borland-like IDE (ide.sl):

% Navigate on buffers
require("keydefs");
setkey ("ide_next_buffer (0)",  Key_Alt_Right);
setkey ("ide_next_buffer (1)",  Key_Alt_Left);

 define ide_next_buffer (previous)
{
  variable n, buf;
  n = buffer_list (); % get the buffers on the stack
  if (previous)
    _stk_reverse (n-1);
  loop (n) {
    buf = ();
    n--;
    if (buf[0] == ' ') continue;
    sw2buf (buf);
    _pop_n (n);
    return;
  }
}

@Ulli: How do you move in windows? Are you using ide.sl's
*ide_window_up()* and *ide_window_down()* too?

Best,

-- 
Facundo Andrés Bianco
freenode / identica: vando
http://van.do
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l

[2011 date index] [2011 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]