emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Shiyuan <gshy2014@gmail.com>
To: Omid <omidlink@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: src blocks not fontified
Date: Sun, 1 Jun 2014 15:40:30 -0700	[thread overview]
Message-ID: <CAOm4EMv7cR6qmM-yEwMurnpO+5H=H2GU_sbgaBs47O2V+ioSjA@mail.gmail.com> (raw)
In-Reply-To: <538BA666.1000900@gmail.com>

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

That solves the problem. Thanks Omid.
Should this be the default setup? It seems more nature to fontify the src
block than not.

Also, when I export the org file to html, the src block is not fontified in
the resulting html webpage. Is there another option to turn this function
on? Thanks.


On Sun, Jun 1, 2014 at 3:17 PM, Omid <omidlink@gmail.com> wrote:

> Hi Shiyuan,
>
> Add
>
> (setq org-src-fontify-natively t)
>
> to your .emacs.
>
> Omid
>
> Sent from my Emacs
>
> On 06/01/2014 06:13 PM, Shiyuan wrote:
> > Hi,
> >     I am using Emacs 24.3 with the built-in org mode(7.9.3). The src
> > code block is not fontified (Emacs is started with -Q option)
> > #+BEGIN_SRC emacs-lisp
> >     (defun org-xor (a b)
> >       "Exclusive or."
> >     (if a (not b) b))
> > #+END_SRC
> >
> > This is my first time to use org-mode, so I could miss some setup
> > steps.Do I need to do any setup in my .emacs if I just use the built-in
> > org?
> >
> > Thanks.
> >
> > Shiyuan
>
>

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

  reply	other threads:[~2014-06-01 22:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-01 22:13 src blocks not fontified Shiyuan
2014-06-01 22:17 ` Omid
2014-06-01 22:40   ` Shiyuan [this message]
2014-06-01 22:46     ` Omid
2014-06-03 18:38       ` Shiyuan
2014-06-03 18:53         ` Nick Dokos
2014-06-05  6:47           ` Shiyuan
2014-06-05 13:13             ` Sebastien Vauban
2014-06-06  5:51               ` Shiyuan
2014-06-06  5:54                 ` Omid
     [not found]                 ` <CAOm4EMu-1yOXynV_qQR5cKGWpiA9trHePsEcDaX=whnmpdLDOg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-06  7:36                   ` Sebastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOm4EMv7cR6qmM-yEwMurnpO+5H=H2GU_sbgaBs47O2V+ioSjA@mail.gmail.com' \
    --to=gshy2014@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=omidlink@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).