emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Howto: different faces for "begin_src" and "results"
@ 2014-03-10 10:49 Miguel Ruiz
  2014-03-10 12:03 ` Jambunathan K
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Miguel Ruiz @ 2014-03-10 10:49 UTC (permalink / raw)
  To: orgmode mailing list

Hi

I was wondering if it's possible to have different faces for "#+begin_src/#+end_src" and "results" so distinguishing the blocks is easier.

TIA.

____________________________________________________________
Protect your computer files with professional cloud backup.
Get PCRx Backup and upload unlimited files automatically. 
Learn more at http://backup.pcrx.com/mail

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

* Re: Howto: different faces for "begin_src" and "results"
  2014-03-10 10:49 Howto: different faces for "begin_src" and "results" Miguel Ruiz
@ 2014-03-10 12:03 ` Jambunathan K
  2014-03-10 15:27 ` Bastien
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Jambunathan K @ 2014-03-10 12:03 UTC (permalink / raw)
  To: Miguel Ruiz; +Cc: orgmode mailing list

Miguel Ruiz <rbenit68@inbox.com> writes:

> I was wondering if it's possible to have different faces for
> "#+begin_src/#+end_src" and "results" so distinguishing the blocks is
> easier.

Put cursor on the character whose colour you want to change and do

    M-x cusotmize-face

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

* Re: Howto: different faces for "begin_src" and "results"
  2014-03-10 10:49 Howto: different faces for "begin_src" and "results" Miguel Ruiz
  2014-03-10 12:03 ` Jambunathan K
@ 2014-03-10 15:27 ` Bastien
  2014-03-10 15:30 ` Fabrice Niessen
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2014-03-10 15:27 UTC (permalink / raw)
  To: Miguel Ruiz; +Cc: orgmode mailing list

Hi Miguel,

Miguel Ruiz <rbenit68@inbox.com> writes:

> I was wondering if it's possible to have different faces for
> "#+begin_src/#+end_src" and "results" so distinguishing the blocks is
> easier.

Yes:

M-x customize-face RET org-block-begin-line RET
M-x customize-face RET org-meta-line RET

HTH,

-- 
 Bastien

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

* Re: Howto: different faces for "begin_src" and "results"
  2014-03-10 10:49 Howto: different faces for "begin_src" and "results" Miguel Ruiz
  2014-03-10 12:03 ` Jambunathan K
  2014-03-10 15:27 ` Bastien
@ 2014-03-10 15:30 ` Fabrice Niessen
  2014-03-12  6:49 ` Miguel Ruiz
  2014-03-19  1:06 ` Grant Rettke
  4 siblings, 0 replies; 6+ messages in thread
From: Fabrice Niessen @ 2014-03-10 15:30 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Miguel Ruiz wrote:
> I was wondering if it's possible to have different faces for
> "#+begin_src/#+end_src" and "results" so distinguishing the blocks is
> easier.

Yes, you can.

See `org-block-begin/end-line' for the block delimiters.

For an example, take a look at
https://github.com/fniessen/color-theme-leuven, or other themes from
http://orgmode.org/worg/org-color-themes.html.

Best regards,
Fabrice

-- 
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/

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

* Re: Howto: different faces for "begin_src" and "results"
  2014-03-10 10:49 Howto: different faces for "begin_src" and "results" Miguel Ruiz
                   ` (2 preceding siblings ...)
  2014-03-10 15:30 ` Fabrice Niessen
@ 2014-03-12  6:49 ` Miguel Ruiz
  2014-03-19  1:06 ` Grant Rettke
  4 siblings, 0 replies; 6+ messages in thread
From: Miguel Ruiz @ 2014-03-12  6:49 UTC (permalink / raw)
  To: orgmode mailing list

Thank you Bastien, Fabrice, Jambunathan.

In the meantime I have discovered org-font-lock-keywords and related.

Miguel.

> -----Original Message-----
> From: rbenit68@inbox.com
> Sent: Mon, 10 Mar 2014 02:49:08 -0800
> To: emacs-orgmode@gnu.org
> Subject: [O] Howto: different faces for "begin_src" and "results"
> 
> Hi
> 
> I was wondering if it's possible to have different faces for
> "#+begin_src/#+end_src" and "results" so distinguishing the blocks is
> easier.
> 
> TIA.
> 
> ____________________________________________________________
> Protect your computer files with professional cloud backup.
> Get PCRx Backup and upload unlimited files automatically.
> Learn more at http://backup.pcrx.com/mail

____________________________________________________________
Protect your computer files with professional cloud backup.
Get PCRx Backup and upload unlimited files automatically. 
Learn more at http://backup.pcrx.com/mail

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

* Re: Howto: different faces for "begin_src" and "results"
  2014-03-10 10:49 Howto: different faces for "begin_src" and "results" Miguel Ruiz
                   ` (3 preceding siblings ...)
  2014-03-12  6:49 ` Miguel Ruiz
@ 2014-03-19  1:06 ` Grant Rettke
  4 siblings, 0 replies; 6+ messages in thread
From: Grant Rettke @ 2014-03-19  1:06 UTC (permalink / raw)
  To: Miguel Ruiz; +Cc: orgmode mailing list

[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]

Just curious, what do you find unpleasant about the default coloring?

At first I didn't like the grey, but after time I came to value it because
I don't
want the code to really jump out, instead just be reference-able since C:c
' brings up
the editor with full highlighting.

Really, I'm just curious, because I always want to find new ways to work
with literate docs.


On Mon, Mar 10, 2014 at 5:49 AM, Miguel Ruiz <rbenit68@inbox.com> wrote:

> Hi
>
> I was wondering if it's possible to have different faces for
> "#+begin_src/#+end_src" and "results" so distinguishing the blocks is
> easier.
>
> TIA.
>
> ____________________________________________________________
> Protect your computer files with professional cloud backup.
> Get PCRx Backup and upload unlimited files automatically.
> Learn more at http://backup.pcrx.com/mail
>
>
>
>


-- 
Grant Rettke | ACM, AMA, COG, IEEE
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

[-- Attachment #2: Type: text/html, Size: 1803 bytes --]

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

end of thread, other threads:[~2014-03-19  1:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-10 10:49 Howto: different faces for "begin_src" and "results" Miguel Ruiz
2014-03-10 12:03 ` Jambunathan K
2014-03-10 15:27 ` Bastien
2014-03-10 15:30 ` Fabrice Niessen
2014-03-12  6:49 ` Miguel Ruiz
2014-03-19  1:06 ` Grant Rettke

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).