unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* how to align the comments to start from the same column?
@ 2007-07-10  2:44 William Xue
  2007-07-10 11:31 ` Alan Mackenzie
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: William Xue @ 2007-07-10  2:44 UTC (permalink / raw)
  To: emacs-devel

Hi,
when I am coding in cpp files, I will use M-; to make some comments, like  
following:

                         IoCreateFileSpecifyDeviceObjectHint(&h_rd_file, //  
file handle
                                                             GENERIC_READ |  
GENERIC_WRITE, // desire access
                                                             &rd_file_obj_attr,  
// object attributes
                                                             &rd_io_status_block,  
// io status block
                                                             0, //  
allocation size
                                                             FILE_ATTRIBUTE_NORMAL,  
// file attributes
                                                             FILE_SHARE_READ,  
// share access

Is there a way to format the comments to the same column?

I want something like:

1. select the codes as a region
2. press a magic keybinding
3. the comments align to the longest column of comments in the region.

:)

-- 
Sincerely yours,
William

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-07-14  6:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-10  2:44 how to align the comments to start from the same column? William Xue
2007-07-10 11:31 ` Alan Mackenzie
2007-07-10 13:41 ` Stefan Monnier
2007-07-11  1:44   ` William Xue
2007-07-11  4:01     ` Stefan Monnier
2007-07-11  7:03       ` William Xue
2007-07-13 18:18 ` Dan Nicolaescu
2007-07-14  6:04   ` William Xue

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).