jed-users mailing list

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

Re: [Jed-users-l] TAB Keycode


Mike McClain wrote:
> I wanted different too.
> Modify this to your needs:
> 
> %   what happens when TAB key pressed
> %   these globals are involved TAB TAB_DEFAULT USE_TABS
> define do_tab ()
> {   if( USE_TABS )
>         insert_char("\t");
>     else
>     {   variable tab_spaces, c = what_column();
>         tab_spaces = 1 + TAB_DEFAULT - (c mod TAB_DEFAULT);
>         vinsert( "%*c", tab_spaces, ' ' );
>     }
> }
> 
> local_unsetkey("^I");
> local_setkey("do_tab",              "^I");          %   Tab

Thanks Mike! It helps me.

Best,

--
Facundo Bianco
http://van.do
gpg: 0xBEF94860 || qra: LU7AND || irc: vando
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


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