help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs + donation


From: tomas
Subject: Re: emacs + donation
Date: Wed, 10 Jan 2018 17:07:59 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Jan 10, 2018 at 09:35:36AM -0500, d paddy wrote:
> Greetings...
> 
> I was initially pointed to address@hidden so as to get help with an emacs
> question and donate to fsf.
> A consequence of that interaction was my redirection to
> address@hidden
> 
> QUESTION: How do I stop emacs from changing what I type?

I guess you are falling prey to "electric-indent-mode".

(I assume you are using fundamental-mode, but for most programming
modes this is similar)

To check this, re-run your experiment, but *before*, enter the
following command: "M-x electric-indent-mode" (M-x is the META
key, typically Alt on a PC keyboard). You should see the message
"Electric-Indent mode disabled" in the mode line (otherwise my
hunch is incorrect and you may stop reading here :)

Now retry.

You see, electric indent mode inserts spaces to indent a newly
entered line to match the insertion of the line above. To not
let lots of lines with just whitespaces in it, it helpfully
removes trailing whitespace when you leave the line with RET.

Possibly it was this humble minor mode who was stealing the
whitespace you entered.

If you *really* want to have control over non-visible stuff in
your buffer, you might enjoy whitespace-mode, which highlights
(among other things) those otherwise invisible critters.

And now keep those donations coming :-)

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlpWOl8ACgkQBcgs9XrR2kafhwCfY9F4EiGSUY8FaluzeMhPLEJ8
4CcAnixLCjB4/odrVf20anfs5KKCqtZQ
=PNUb
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]