From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: block quotes in prose? Date: Tue, 22 Jan 2013 19:13:32 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b339cad8740ec04d3e990c3 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxnyB-0002V1-Bv for emacs-orgmode@gnu.org; Tue, 22 Jan 2013 19:13:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxnyA-0006nC-2Y for emacs-orgmode@gnu.org; Tue, 22 Jan 2013 19:13:35 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:35193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txny9-0006ly-SA for emacs-orgmode@gnu.org; Tue, 22 Jan 2013 19:13:33 -0500 Received: by mail-pa0-f49.google.com with SMTP id bi1so4394824pad.36 for ; Tue, 22 Jan 2013 16:13:32 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode --047d7b339cad8740ec04d3e990c3 Content-Type: text/plain; charset=ISO-8859-1 1. What's the best way to demarcate block quotes in org-mode? I'd like a way to demarcate them that makes it visually clear at a glance that it's a block quote and not regular text. I would prefer not to have to put them inside #+BEGIN_QUOTE and #+END_QUOTE references, because I'd rather not have any content in my buffer that distracts me from my actual writing. In Markdown-Mode, for instance, I just prefix a block quote with a > and the line automatically changes color: http://i.imgur.com/AUsYJ.png Org-mode is infinitely more powerful than Markdown-Mode, so I'd just like a way to work with lots of prose and block quotes in org-mode that will be easy and visually pleasing. I'm primarily concerned about how it appears in the org-mode editor, not in export. 2. It would also be cool to find a way to make bulleted lists appear in a different color if possible, or a workaround to simulate this. Thanks! --047d7b339cad8740ec04d3e990c3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
1. What's the best way to demarcate block quotes in org-mode? I= 9;d like a way to demarcate them that makes it visually clear at a glance t= hat it's a block quote and not regular text.

I would prefer not to have to put them inside=A0#+BEGIN_QUOTE and=A0#+END_Q= UOTE references, because I'd rather not have any content in my buffer t= hat distracts me from my actual writing.

In Markdo= wn-Mode, for instance, I just prefix a block quote with a > and the line= automatically changes color:


Org-mode is infinitely more pow= erful than Markdown-Mode, so I'd just like a way to work with lots of p= rose and block quotes in org-mode that will be easy and visually pleasing. = I'm primarily concerned about how it appears in the org-mode editor, no= t in export.=A0

2. It would also be cool to find a way to make bulleted= lists appear in a different color if possible, or a workaround to simulate= this.

Thanks!


--047d7b339cad8740ec04d3e990c3-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: block quotes in prose? Date: Tue, 22 Jan 2013 23:03:51 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxsV9-0001tp-FX for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 00:03:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxsV7-0006SN-IR for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 00:03:55 -0500 Received: from mail-oa0-f44.google.com ([209.85.219.44]:59733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxsV7-0006SE-Cw for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 00:03:53 -0500 Received: by mail-oa0-f44.google.com with SMTP id n5so8156363oag.3 for ; Tue, 22 Jan 2013 21:03:52 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Salazar Cc: org-mode On Tue, Jan 22, 2013 at 6:13 PM, Peter Salazar wrote: > 1. What's the best way to demarcate block quotes in org-mode? I'd like a way > to demarcate them that makes it visually clear at a glance that it's a block > quote and not regular text. > > I would prefer not to have to put them inside #+BEGIN_QUOTE and #+END_QUOTE > references, because I'd rather not have any content in my buffer that > distracts me from my actual writing. > > In Markdown-Mode, for instance, I just prefix a block quote with a > and the > line automatically changes color: > > http://i.imgur.com/AUsYJ.png > > Org-mode is infinitely more powerful than Markdown-Mode, so I'd just like a > way to work with lots of prose and block quotes in org-mode that will be > easy and visually pleasing. I'm primarily concerned about how it appears in > the org-mode editor, not in export. > Looking around, at least some of this appears defined in /path/to/org-src/lisp/org-faces.el. I don't know enough elisp to tell you how to make Org treat "> text..." the same as #+begin_quote. Perhaps you could figure out where the face change is for lines like #+latex: and #+begin_src, as they both change the face of the text immediately after (no need for an #+end_ command to tell Org to go back to the default face). You might be able to add "^> text" to the list of face-sensitive regexps to look for (using ^ as symbol for beginning of line). ETA: after some more grepping, it looks like you could add something in two places: 1) org-faces.el Search the file for "defface" and make a new face. I've not done this, but you can definitely copy/yank some existing definitions and tweak to your liking. 2) org.el Find a matching fontify function to see how the fontification is done. They look pretty complicated... but perhaps it's possible to tweak one to fontify "^> text...". Perhaps the easiest would be to find a face you like and just add "^> text..." to the existing list of things org already fontifies with that style. In other words, add "^> text" regexp to the existing hunt for lines that start with #+ in order to get src code fontification applied. > 2. It would also be cool to find a way to make bulleted lists appear in a > different color if possible, or a workaround to simulate this. As in? - item 1 - item 2 I'm sure that's possible, too. Can't imagine this will become global, but you could surely create your own git branch if you figure out how or someone tells you how. Good luck! John > > Thanks! > > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: block quotes in prose? Date: Wed, 23 Jan 2013 13:44:18 +0100 Message-ID: <877gn4rrvh.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txzgj-0007Oh-Bn for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 07:44:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Txzgi-00070G-Bw for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 07:44:21 -0500 Received: from mail-wg0-f53.google.com ([74.125.82.53]:56020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txzgi-00070A-59 for emacs-orgmode@gnu.org; Wed, 23 Jan 2013 07:44:20 -0500 Received: by mail-wg0-f53.google.com with SMTP id fn15so1443982wgb.20 for ; Wed, 23 Jan 2013 04:44:19 -0800 (PST) In-Reply-To: (Peter Salazar's message of "Tue, 22 Jan 2013 19:13:32 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Salazar Cc: org-mode Hi Peter, Peter Salazar writes: > 1. What's the best way to demarcate block quotes in org-mode? (setq org-fontify-quote-and-verse-blocks t) This uses the org-quote face, which inherits its properties from the org-block face -- M-x customize-face RET org-quote RET to customize the org-quote face. > 2. It would also be cool to find a way to make bulleted lists appear > in a different color if possible, or a workaround to simulate this. You can play around with this (highlight-regexp (org-item-re)) or (highlight-regexp (org-item-re) 'org-quote) or (highlight-regexp org-list-full-item-re 'org-quote) ... But this is hackish, temporary and half-satisfactory. HTH, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: block quotes in prose? Date: Thu, 24 Jan 2013 01:36:11 -0500 Message-ID: References: <877gn4rrvh.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b10d17bd9070904d4030611 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyGQ5-0005c7-KP for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 01:36:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyGQ1-0006vz-4o for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 01:36:17 -0500 Received: from mail-pb0-f47.google.com ([209.85.160.47]:52502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyGQ0-0006vu-UK for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 01:36:13 -0500 Received: by mail-pb0-f47.google.com with SMTP id wz17so5215324pbc.6 for ; Wed, 23 Jan 2013 22:36:11 -0800 (PST) In-Reply-To: <877gn4rrvh.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: org-mode --047d7b10d17bd9070904d4030611 Content-Type: text/plain; charset=ISO-8859-1 This is awesome, thank you. I'll play around with it! On Wed, Jan 23, 2013 at 7:44 AM, Bastien wrote: > Hi Peter, > > Peter Salazar writes: > > > 1. What's the best way to demarcate block quotes in org-mode? > > (setq org-fontify-quote-and-verse-blocks t) > > This uses the org-quote face, which inherits its properties from the > org-block face -- M-x customize-face RET org-quote RET to customize > the org-quote face. > > > 2. It would also be cool to find a way to make bulleted lists appear > > in a different color if possible, or a workaround to simulate this. > > You can play around with this > > (highlight-regexp (org-item-re)) > > or > > (highlight-regexp (org-item-re) 'org-quote) > > or > > (highlight-regexp org-list-full-item-re 'org-quote) > > ... > > But this is hackish, temporary and half-satisfactory. > > HTH, > > -- > Bastien > --047d7b10d17bd9070904d4030611 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This is awesome, thank you. I'll play around with it!


On Wed, Jan 23, 2013 at 7:44 AM, Bastien <bzg@altern.or= g> wrote:
Hi Peter,

Peter Salazar <cycleofsong@gmai= l.com> writes:

> 1. What's the best way to demarcate block quotes in org-mode?

(setq org-fontify-quote-and-verse-blocks t)

This uses the org-quote face, which inherits its properties from the
org-block face -- M-x customize-face RET org-quote RET to customize
the org-quote face.

> 2. It would also be cool to find a way to make bulleted lists appear > in a different color if possible, or a workaround to simulate this.
You can play around with this

(highlight-regexp (org-item-re))

or

(highlight-regexp (org-item-re) 'org-quote)

or

(highlight-regexp org-list-full-item-re 'org-quote)

...

But this is hackish, temporary and half-satisfactory.

HTH,

--
=A0Bastien

--047d7b10d17bd9070904d4030611-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: block quotes in prose? Date: Mon, 4 Feb 2013 23:10:47 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d042f949aee9c5c04d4f26456 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2Zrv-0004fi-5R for emacs-orgmode@gnu.org; Mon, 04 Feb 2013 23:10:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2Zrt-0004wT-D9 for emacs-orgmode@gnu.org; Mon, 04 Feb 2013 23:10:51 -0500 Received: from mail-da0-f52.google.com ([209.85.210.52]:47280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2Zrs-0004wM-Uy for emacs-orgmode@gnu.org; Mon, 04 Feb 2013 23:10:49 -0500 Received: by mail-da0-f52.google.com with SMTP id f10so2933542dak.39 for ; Mon, 04 Feb 2013 20:10:47 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: org-mode --f46d042f949aee9c5c04d4f26456 Content-Type: text/plain; charset=ISO-8859-1 I think an easy workaround would be to define block quotes as code blocks instead. putting the ":" as a prefix before a paragraph automatically fontifies it and places it in another color. This allows me to work in org-mode with visual highlighting of block quotes as desired. Now the question is: How do I make org-mode recognize the ">" prefix as a demarcator of a code block, so that my document remains readable as Markdown? Thanks! On Wed, Jan 23, 2013 at 12:03 AM, John Hendy wrote: > On Tue, Jan 22, 2013 at 6:13 PM, Peter Salazar > wrote: > > 1. What's the best way to demarcate block quotes in org-mode? I'd like a > way > > to demarcate them that makes it visually clear at a glance that it's a > block > > quote and not regular text. > > > > I would prefer not to have to put them inside #+BEGIN_QUOTE and > #+END_QUOTE > > references, because I'd rather not have any content in my buffer that > > distracts me from my actual writing. > > > > In Markdown-Mode, for instance, I just prefix a block quote with a > and > the > > line automatically changes color: > > > > http://i.imgur.com/AUsYJ.png > > > > Org-mode is infinitely more powerful than Markdown-Mode, so I'd just > like a > > way to work with lots of prose and block quotes in org-mode that will be > > easy and visually pleasing. I'm primarily concerned about how it appears > in > > the org-mode editor, not in export. > > > > Looking around, at least some of this appears defined in > /path/to/org-src/lisp/org-faces.el. > > I don't know enough elisp to tell you how to make Org treat "> > text..." the same as #+begin_quote. > > Perhaps you could figure out where the face change is for lines like > #+latex: and #+begin_src, as they both change the face of the text > immediately after (no need for an #+end_ command to tell Org to go > back to the default face). You might be able to add "^> text" to the > list of face-sensitive regexps to look for (using ^ as symbol for > beginning of line). > > ETA: after some more grepping, it looks like you could add something > in two places: > > 1) org-faces.el > > Search the file for "defface" and make a new face. I've not done this, > but you can definitely copy/yank some existing definitions and tweak > to your liking. > > 2) org.el > > Find a matching fontify function to see how the fontification is done. > They look pretty complicated... but perhaps it's possible to tweak one > to fontify "^> text...". > > Perhaps the easiest would be to find a face you like and just add "^> > text..." to the existing list of things org already fontifies with > that style. In other words, add "^> text" regexp to the existing hunt > for lines that start with #+ in order to get src code fontification > applied. > > > 2. It would also be cool to find a way to make bulleted lists appear in a > > different color if possible, or a workaround to simulate this. > > As in? > - item 1 > - item 2 > > I'm sure that's possible, too. Can't imagine this will become global, > but you could surely create your own git branch if you figure out how > or someone tells you how. > > > Good luck! > John > > > > > > Thanks! > > > > > --f46d042f949aee9c5c04d4f26456 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I think an easy workaround would be to define block quotes as code blocks i= nstead.=A0

putting the ":" as a prefix before = a paragraph automatically fontifies it and places it in another color.=A0

This allows me to work in org-mode with visual highligh= ting of block quotes as desired.

Now the question = is: How do I make org-mode recognize the ">" prefix as a demar= cator of a code block, so that my document remains readable as Markdown?

Thanks!


On= Wed, Jan 23, 2013 at 12:03 AM, John Hendy <jw.hendy@gmail.com> wrote:
On Tue, Jan 22, 2013 at 6:= 13 PM, Peter Salazar <cycleofso= ng@gmail.com> wrote:
> 1. What's the best way to demarcate block quotes in org-mode? I= 9;d like a way
> to demarcate them that makes it visually clear at a glance that it'= ;s a block
> quote and not regular text.
>
> I would prefer not to have to put them inside #+BEGIN_QUOTE and #+END_= QUOTE
> references, because I'd rather not have any content in my buffer t= hat
> distracts me from my actual writing.
>
> In Markdown-Mode, for instance, I just prefix a block quote with a >= ; and the
> line automatically changes color:
>
> http://i.im= gur.com/AUsYJ.png
>
> Org-mode is infinitely more powerful than Markdown-Mode, so I'd ju= st like a
> way to work with lots of prose and block quotes in org-mode that will = be
> easy and visually pleasing. I'm primarily concerned about how it a= ppears in
> the org-mode editor, not in export.
>

Looking around, at least some of this appears defined in
/path/to/org-src/lisp/org-faces.el.

I don't know enough elisp to tell you how to make Org treat "><= br> text..." the same as #+begin_quote.

Perhaps you could figure out where the face change is for lines like
#+latex: and #+begin_src, as they both change the face of the text
immediately after (no need for an #+end_ command to tell Org to go
back to the default face). You might be able to add "^> text" = to the
list of face-sensitive regexps to look for (using ^ as symbol for
beginning of line).

ETA: after some more grepping, it looks like you could add something
in two places:

1) org-faces.el

Search the file for "defface" and make a new face. I've not d= one this,
but you can definitely copy/yank some existing definitions and tweak
to your liking.

2) org.el

Find a matching fontify function to see how the fontification is done.
They look pretty complicated... but perhaps it's possible to tweak one<= br> to fontify "^> text...".

Perhaps the easiest would be to find a face you like and just add "^&g= t;
text..." to the existing list of things org already fontifies with
that style. In other words, add "^> text" regexp to the existi= ng hunt
for lines that start with #+ in order to get src code fontification
applied.

> 2. It would also be cool to find a way to make bulleted lists appear i= n a
> different color if possible, or a workaround to simulate this.

As in?
- item 1
- item 2

I'm sure that's possible, too. Can't imagine this will become g= lobal,
but you could surely create your own git branch if you figure out how
or someone tells you how.


Good luck!
John


>
> Thanks!
>
>

--f46d042f949aee9c5c04d4f26456-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: block quotes in prose? Date: Mon, 11 Feb 2013 16:54:39 +0100 Message-ID: <87liaug81s.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4viX-0003TS-V1 for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 10:54:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4viW-0008AO-Eb for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 10:54:53 -0500 Received: from mail-wi0-f176.google.com ([209.85.212.176]:45348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4viW-0008A6-88 for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 10:54:52 -0500 Received: by mail-wi0-f176.google.com with SMTP id hm14so3317081wib.9 for ; Mon, 11 Feb 2013 07:54:51 -0800 (PST) In-Reply-To: (Peter Salazar's message of "Mon, 4 Feb 2013 23:10:47 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Salazar Cc: org-mode Hi Peter, Peter Salazar writes: > Now the question is: How do I make org-mode recognize the ">" prefix > as a demarcator of a code block, so that my document remains readable > as Markdown? You can't -- using ":" as the prefix for fixed-width regions is hardcoded. If we allow to customize this, it will lower the "exchangeability" of .org files between users (this exchangeability is already quite low due to the many options user have.) Best, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: block quotes in prose? Date: Mon, 11 Feb 2013 17:01:35 +0100 Message-ID: <86halion4w.fsf@somewhere.org> References: <87liaug81s.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Bastien and Peter, Bastien wrote: > Peter Salazar writes: > >> Now the question is: How do I make org-mode recognize the ">" prefix as a >> demarcator of a code block, so that my document remains readable as >> Markdown? > > You can't -- using ":" as the prefix for fixed-width regions is hardcoded. > If we allow to customize this, it will lower the "exchangeability" of .org > files between users (this exchangeability is already quite low due to the > many options user have.) That 'd have been excellent: copies of (replies to) emails wouldn't have needed to be protected anyhow. But, yes, I can understand it's too late... Best regards, Seb -- Sebastien Vauban From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: block quotes in prose? Date: Sat, 16 Feb 2013 15:27:47 -0500 Message-ID: References: <87liaug81s.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15ac0b3508d804d5dd5320 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6oMQ-00020G-9E for emacs-orgmode@gnu.org; Sat, 16 Feb 2013 15:27:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6oMP-0003gs-1b for emacs-orgmode@gnu.org; Sat, 16 Feb 2013 15:27:50 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:50227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6oMO-0003ge-NU for emacs-orgmode@gnu.org; Sat, 16 Feb 2013 15:27:48 -0500 Received: by mail-pa0-f44.google.com with SMTP id kp1so2249752pab.17 for ; Sat, 16 Feb 2013 12:27:47 -0800 (PST) In-Reply-To: <87liaug81s.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: org-mode --047d7b15ac0b3508d804d5dd5320 Content-Type: text/plain; charset=ISO-8859-1 Bastien, thanks for the response and the explanation. Looks like getting org-mode recognize the ">" prefix as a demarcator of a code block isn't the right approach then. What about John Hendy's suggestion of finding a face I like, and then adding "^> text..." to the list of things org fontifies with that style? ('In other words, add "^> text" regexp to the existing hunt for lines that start with #+ in order to get src code fontification applied.') Is this feasible? If so, how would I go about doing this? Sorry for the newbie question. I'm looking in org-faces, and I don't see anywhere where I can specify the prefix characters org looks for... John Hendy wrote: > The easiet would be to find a face you like and just add "^> text..." to the existing list of things org already fontifies with that style. In other words, add "^> text" regexp to the existing hunt for lines that start with #+ in order to get src code fontification applied. On Mon, Feb 11, 2013 at 10:54 AM, Bastien wrote: > Hi Peter, > > Peter Salazar writes: > > > Now the question is: How do I make org-mode recognize the ">" prefix > > as a demarcator of a code block, so that my document remains readable > > as Markdown? > > You can't -- using ":" as the prefix for fixed-width regions is > hardcoded. If we allow to customize this, it will lower the > "exchangeability" of .org files between users (this exchangeability > is already quite low due to the many options user have.) > > Best, > > -- > Bastien > --047d7b15ac0b3508d804d5dd5320 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Bastien, thanks for the response and the explanation. Looks like getting or= g-mode recognize the ">" prefix as a demarcator of a code bloc= k isn't the right approach then.=A0

What about = John Hendy's suggestion of finding a face I like, and then adding "= ;^> text..." to the list of things org fontifies with that style? (= 'In other words, add "^> text" regexp to the existing hunt= for lines that start with #+ in order to get src code fontification applie= d.')=A0

Is this feasible? If so, how would I go about doin= g this? Sorry for the newbie question. I'm looking in org-faces, and I = don't see anywhere where I can specify the prefix characters org looks = for...=A0



John Hendy wrote:=A0=
> The easiet would be to find a face you like and just add &q= uot;^>
text..." to the existing list of things org alread= y fontifies with
that style. In other words, add "^> text" regexp to the e= xisting hunt
for lines that start with #+ in order to get src cod= e fontification
applied.




On Mon, Feb 11, 2013 at 10:54 AM, Bastie= n <bzg@altern.org> wrote:
Hi Peter,

Peter Salazar <cycleofsong@gmai= l.com> writes:

> Now the question is: How do I make org-mode re= cognize the ">" prefix
> as a demarcator of a code block, so that my document remains readable<= br> > as Markdown?

You can't -- using ":" as the prefix for fixed-width re= gions is
hardcoded. =A0If we allow to customize this, it will lower the
"exchangeability" of .org files between users (this exchangeabili= ty
is already quite low due to the many options user have.)

Best,

--
=A0Bastien

--047d7b15ac0b3508d804d5dd5320-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: block quotes in prose? Date: Sat, 23 Feb 2013 10:54:26 +0100 Message-ID: <87wqtz2tn9.fsf@bzg.ath.cx> References: <87liaug81s.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Cke-0007ui-Js for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:54:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9CkY-0001xd-VN for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:54:44 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:43855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9CkY-0001xW-P5 for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:54:38 -0500 Received: by mail-wg0-f48.google.com with SMTP id 16so1151017wgi.3 for ; Sat, 23 Feb 2013 02:54:38 -0800 (PST) In-Reply-To: (Peter Salazar's message of "Sat, 16 Feb 2013 15:27:47 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Salazar Cc: org-mode Hi Peter, Peter Salazar writes: > What about John Hendy's suggestion of finding a face I like, and then > adding "^> text..." to the list of things org fontifies with that > style? ('In other words, add "^> text" regexp to the existing hunt > for lines that start with #+ in order to get src code fontification > applied.')  > > Is this feasible? Use this somewhere in your configuration: (font-lock-add-keywords 'org-mode '(("^\\(:+\\) " 1 (compose-region (match-beginning 1) (match-end 1) ?> ) nil))) M-x org-mode RET in an org-mode buffer if you evaluate this sexp after you visited the file, otherwise the change will not be visible. HTH, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: block quotes in prose? Date: Sun, 24 Feb 2013 14:45:10 -0500 Message-ID: References: <87liaug81s.fsf@bzg.ath.cx> <87wqtz2tn9.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb1f8d087a70c04d67da960 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9hVZ-00043q-EA for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 14:45:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9hVX-0000rm-NH for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 14:45:13 -0500 Received: from mail-oa0-f51.google.com ([209.85.219.51]:63833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9hVX-0000rR-Fk for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 14:45:11 -0500 Received: by mail-oa0-f51.google.com with SMTP id h2so2219372oag.10 for ; Sun, 24 Feb 2013 11:45:10 -0800 (PST) In-Reply-To: <87wqtz2tn9.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: org-mode --e89a8fb1f8d087a70c04d67da960 Content-Type: text/plain; charset=ISO-8859-1 Excellent! Thank you so much! :-) On Sat, Feb 23, 2013 at 4:54 AM, Bastien wrote: > Hi Peter, > > Peter Salazar writes: > > > What about John Hendy's suggestion of finding a face I like, and then > > adding "^> text..." to the list of things org fontifies with that > > style? ('In other words, add "^> text" regexp to the existing hunt > > for lines that start with #+ in order to get src code fontification > > applied.') > > > > Is this feasible? > > Use this somewhere in your configuration: > > (font-lock-add-keywords > 'org-mode '(("^\\(:+\\) " 1 (compose-region (match-beginning 1) > (match-end 1) ?> ) nil))) > > M-x org-mode RET in an org-mode buffer if you evaluate this sexp after > you visited the file, otherwise the change will not be visible. > > HTH, > > -- > Bastien > --e89a8fb1f8d087a70c04d67da960 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Excellent! Thank you so much! :-)


On= Sat, Feb 23, 2013 at 4:54 AM, Bastien <bzg@altern.org> wrote:<= br>
Hi Peter,

Peter Salazar <cycleofsong@gmai= l.com> writes:

> What about John Hendy's suggestion of find= ing a face I like, and then
> adding "^> text..." to the list of things org fontifies w= ith that
> style? ('In other words, add "^> text" regexp to the = existing hunt
> for lines that start with #+ in order to get src code fontification > applied.')=A0
>
> Is this feasible?

Use this somewhere in your configuration:

=A0 (font-lock-add-keywords
=A0 =A0 =A0 =A0'org-mode '(("^\\(:+\\) " 1 (compose-regio= n=A0(match-beginning 1) (match-end 1) ?> ) nil)))

M-x org-mode RET in an org-mode buffer if you evaluate this sexp after
you visited the file, otherwise the change will not be visible.

HTH,

--
=A0Bastien

--e89a8fb1f8d087a70c04d67da960--