Indentation in templates

[email protected] (Jiří Pejchal)
Newsgroups gmane.emacs.jdee.devel
Message-ID <[email protected]>
Hi,
is there a reason that the line with cursor isn't indented after
inserting a template?

For example, if I enter:

if space a == 3 enter
I'll get:

if (a == 3) {
|<------- cursor here
}

Then I *always* hit TAB to get the indentation.
What I would prefer to get is this:

if (a == 3) {
    | <------- cursor here
}

It would save a lot of keystrokes.

I can get this behaviour if I change the line
"'r'n"
in jde-gen-cflow-if to
"'>'r'n".

And similarly for jde-gen-cflow-{if-else, switch, for, for-i, finally,
case} etc.

Jiří Pejchal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.