- Subject: Re: [Jed-users-l] jed changes with file type
- From: jed@xxxxxxxxxxx
- Date: Sat, 2 Nov 2013 12:07:24 -0400
Mike McClain <mike.junk@xxxxxxxxxxx> wrote:
> If I recall correctly what I've got now is my own key assignments
> and functions atop 'cua' mode. What do I need to do to get jed to act
> the same regardless of the file I'm editing? Hopefully it's
> configuration rather than having to hack the source.
I do not quite know what you mean by "act the same". Are you trying
to get the TAB key to aways insert TABs, and the RETURN/ENTER
key to always insert newlines? If so, try adding the following
bit of code to your jedrc file:
define global_mode_hook (mode)
{
if ((mode == "eshell_mode_hook")
or (mode == "ashell_mode_hook"))
return;
local_setkey ("self_insert_cmd", "\t");
local_setkey ("newline", "\r");
}
--John
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l
[2013 date index]
[2013 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]