emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Seth Burleigh <wburle4@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [babel] How to fontify blocks other than begin_src?
Date: Fri, 7 Jan 2011 10:14:15 -0600	[thread overview]
Message-ID: <AANLkTin5FXzbGdZS0SDS1_DmA3xEWrE8F993FnAk3FhJ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 719 bytes --]

I would like blocks like begin_html/end_html to be fontified just like
begin_src blocks are.
I would also like to define my own source blocks for clojure (basically a
shorthand) and also have them highlighted. Heres what i have to turn on
fontifying and define a block.

(setq org-src-fontify-natively t)
;; define #+clj as start of clojure code block and #+end as end of block
(add-to-list 'org-edit-src-region-extra
   '("^[ \t]*#\\+clj.*\n" "\n[ \t]*#\\+end" "clojure"))

Ive also noticed that the code block (#+clj ... #+end) doesnt fold -
however, if i define the block as begin_clj and end_clj it will fold, so im
guessing org assumes a certain block format for folding code.

Any way to do the above two things?

[-- Attachment #1.2: Type: text/html, Size: 1041 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

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

             reply	other threads:[~2011-01-07 16:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07 16:14 Seth Burleigh [this message]
2011-01-07 18:46 ` [babel] How to fontify blocks other than begin_src? Eric Schulte
2011-01-07 23:08   ` Seth Burleigh
2011-01-08 12:14   ` Dan Davison
2011-01-08 20:53     ` Eric Schulte

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=AANLkTin5FXzbGdZS0SDS1_DmA3xEWrE8F993FnAk3FhJ@mail.gmail.com \
    --to=wburle4@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).