|
From: | Peter Lee |
Subject: | Re: how do you strip leading white spaces in c-mode or similar? |
Date: | Thu, 05 Jul 2007 12:48:56 -0500 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (windows-nt) |
>>>> Johna writes: > Basically I am frustrated with the default indentation in c-mode (or > similar modes) because it inserts unnecessary white space(s) on empty > lines. I want all empty lines to contain nothing but '\n'. Instead they > contain "\n\t" or "\n ". If you are only concerned about the extraneous spaces being persisted you could: insert (add-hook 'before-save-hook 'delete-trailing-whitespace t t) into your mode-hook... which will strip them on each save.
[Prev in Thread] | Current Thread | [Next in Thread] |