[erlang-questions] Auto newline in emacs erlang mode

Ulf Wiger <>
Thu Sep 18 00:27:46 CEST 2008

I guess the easiest way would be to set erlang-electric-commands to nil.
That would deactivate all electric commands.

>From erlang.el:

(defvar erlang-electric-commands
  "*List of activated electric commands.

The list should contain the electric commands which should be active.
Currently, the available electric commands are:

Should the variable be bound to t, all electric commands
are activated.

To deactivate all electric commands, set this variable to nil.")

Of course, you could also redefine it to include just the
commands you want...

Ulf W

2008/9/17 Robert Virding <>:
> Is there a clean way to off the auto newline and indenting after a '->'?
> It's driving me nuts! It is easier to add it when you want it than remove it
> all the time you don't.
> Robert
> _______________________________________________
> erlang-questions mailing list
> http://www.erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list