Charles Cave <charles_c...@optusnet.com.au> wrote:

> Eric Schulte <schulte.eric <at> gmail.com> writes:
> 
> > 
> > Hi,
> > 
> > This function could be used to comment out a region of an org-mode file
> > as an example using the ': ' syntax.
> 
> I just use the prefix-region command of Emacs.
> 
> Esc-x prefix-region
> 
> then ..
> 
> :  SPACE  RET

My emacs (GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9)
of 2009-03-06 on alphaville.usa.hp.com) doesn't seem to have prefix-region -
where does it come from?

OTOH, it can be simulated with something like this

(let ((fill-prefix ": "))
     (indent-region (mark) (point)))

but making it more general (arbitrary prefix) and bullet-proof (not sure
whether (indent-region start end) requires that start be less than end)
would need a bit more code than this.

Thanks,
Nick





_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to