In Emacs, how to comment a block of text, i.e. how to indent a block of text rightward by n
whitespace characters and put a chosen character sequence, say ##
, at the beginning of each line?
Original
foo
bar foobar
foo bar
Desired:
# foo
# bar foobar
# foo bar
- I need a method that doesn't interfere with CUA mode.
comment-dwin
doesn't allow me to choose arbitrary character sequence.