all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Formatting code text
@ 2006-11-18  9:42 une
  2006-11-18 13:37 ` Perry Smith
  0 siblings, 1 reply; 3+ messages in thread
From: une @ 2006-11-18  9:42 UTC (permalink / raw)



When writing code in C++ or Java I notice that I can get the code all nicley
aligned and indented correctly by simply adding a comment at the end of each
line of code. As you enter the //, the line of code moves to its correct
alignment. What I have been doing is writing my code and periodically
tidying it up by adding // at the end of every line of code. My question is,
can I speed this aligning and indenting process up by formatting the entire
file using one command? Emacs obviously knows how much each line should be
indented, but doing it one line at a time by adding // is laborious.
 
PS - I did not mean to cross post, my first post was in the Gnu Emacs forum.
Not sure how this website works yet. Sorry.
-- 
View this message in context: http://www.nabble.com/Formatting-code-text-tf2658909.html#a7416552
Sent from the Emacs - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.786.1163845620.2155.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2006-11-19 19:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-18  9:42 Formatting code text une
2006-11-18 13:37 ` Perry Smith
     [not found] <mailman.786.1163845620.2155.help-gnu-emacs@gnu.org>
2006-11-19 19:34 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.