emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: small function suggestion (org-examplize-region)


From: Nick Dokos
Subject: Re: [Orgmode] Re: small function suggestion (org-examplize-region)
Date: Tue, 17 Mar 2009 21:34:58 -0400

Charles Cave <address@hidden> 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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]