From mboxrd@z Thu Jan 1 00:00:00 1970 From: Seth Burleigh Subject: [babel] How to fontify blocks other than begin_src? Date: Fri, 7 Jan 2011 10:14:15 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1724420903==" Return-path: Received: from [140.186.70.92] (port=33140 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbExG-0002aE-5e for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 11:14:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbExE-0000ec-8q for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 11:14:17 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:42849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbExE-0000eK-5j for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 11:14:16 -0500 Received: by iwn40 with SMTP id 40so19319012iwn.0 for ; Fri, 07 Jan 2011 08:14:15 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1724420903== Content-Type: multipart/alternative; boundary=0016363b90ecd6e4b5049943e8ce --0016363b90ecd6e4b5049943e8ce Content-Type: text/plain; charset=ISO-8859-1 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? --0016363b90ecd6e4b5049943e8ce Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I would like blocks like begin_html/end_html to be fontified just like begi= n_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=A0
=A0=A0 '(= "^[ \t]*#\\+clj.*\n" "\n[ \t]*#\\+end" "clojure&qu= ot;))

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

Any way to do the above two things?





--0016363b90ecd6e4b5049943e8ce-- --===============1724420903== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1724420903==--