user1017102
user1017102

Reputation: 807

How to remove whitespace and carriage return symbols in Emacs?

Whenever I edit a Python or ELisp script, Emacs will display a '$' for every carriage return and a centered dot for every whitespace. I have no idea how to disable or get rid off this setting. After looking on Google, I tried to disable the local and global whitespace modes but had no luck.

I tried to comment out every possible line in my .Emacs file, and when this didn't work I deleted the .Emacs file in my home path entirely. I am running Emacs 24.2 on OSX 10.7.

Does anybody have any idea what I can do to remove these characters ?

Upvotes: 2

Views: 1162

Answers (2)

user1017102
user1017102

Reputation: 807

I was able to resolve this by doing the following:

M-x customize In the edit field I entered 'whitespaces'.

This brought me to a settings menu where I was able to set global-whitespace-mode to 'nil'.

Now, I love my EMACS again....

Upvotes: 1

Luis Tellez
Luis Tellez

Reputation: 2973

You can get the full documentation here :

http://emacswiki.org/emacs/WhiteSpace

To deactivate WhiteSpace locally, type: C-u 0 M-x whitespace-mode RET

To deactivate WhiteSpace globally, type: C-u 0 M-x > global-whitespace-mode RET

Upvotes: 3

Related Questions