- Subject: Re: [Jed-users-l] jed changes with file type
- From: Mike McClain <mike.junk@xxxxxxxxxxx>
- Date: Sat, 2 Nov 2013 11:28:18 -0700
Hi John,
I think the problem that initiated the last email is connected to
'newline_and_indent'. When editing some files if autoindent is ON then
when I hit 'ENTER" the cursor drops one line and advances to be under
the first non-white character of the previous line. In other files the
cursor is advanced some few spaces past the first non-white character
of the previous line. I prefer the former and wish to prevent the
latter.
In your code below you align the braces with the beginning of
'define'. I do the same with other block oriented commands (do, for,
while, etc.). Some of the modes in jed want to indent the brace from
the command.
That said let me repeat something from my previous message.
"I don't mind jed recognizing a different set of key words but that's
about the only thing I'd like to change from file to file."
Thanks for your help,
Mike
PS: what are eshell and ashell?
MM
On Sat, Nov 02, 2013 at 12:07:24PM -0400, jed@xxxxxxxxxxx wrote:
> 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
>
--
Happiness is not so much in having but in sharing.
_______________________________________________
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]