[OS X Emacs] electric-newline-and-indent and Aquamacs?

Robert P. Goldman rpgoldman at sift.info
Tue Dec 23 14:54:30 EST 2014


David Reitter wrote:
> This must be a change that came from Emacs 24.  Check the NEWS file for Emacs 24.
> There’s probably a simple solution to make it work as it did - and there’s probably some other way (I have no idea) to actually fix the bug your encountering.

The simple solution is to just put

(electric-indent-mode -1)

in my init.el file....

There's mention of the new global minor mode, electric-indent-mode, but
nothing about making it the default. But I guess the "global" in "global
minor mode" might mean "enabled by default."  Anyway, the default is for
it to be enabled (see the defcustom).  Looks like while
electric-indent-functions is NIL by default so not sure how
electric-indent-mode does anything useful.

Cheers,
r



> 
> --
> http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
> http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!
> 
>> On Dec 23, 2014, at 11:59 AM, Robert P. Goldman <rpgoldman at sift.info> wrote:
>>
>> Recently I find that Aquamacs is now making ^J be
>> electric-newline-and-maybe-indent where before in programming modes I
>> had newline-and-indent.  I suppose this would be fine, except for me
>> it's electric-newline-and-NEVER-indent, which annoys me no end!
>>
>> According to the function description this should indent when
>> electric-indent-functions is non-nil.  This never seems to happen for me.
>>
>> I have no idea why this comprehensively fails to work for me (presumably
>> somehow electric-indent-functions should get loaded with a set of
>> context-appropriate functions), or why/when electric-indent-mode was
>> turned on globally by default.
>>
>> Can anyone clue me in about this?  For now I'm turning it off globally,
>> but presumably there was a good reason to turn this on, and by turning
>> it off, I'm missing out somehow.
>>
>> thanks!
>> r
>>
>> _____________________________________________________________
>> MacOSX-Emacs mailing list
>> MacOSX-Emacs at email.esm.psu.edu
>> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
>> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
> 



More information about the MacOSX-Emacs mailing list