From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aarre Laakso" Subject: outline-regexp and font locking Date: Sat, 28 Jun 2008 23:29:05 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KCnbG-0005kU-Qs for emacs-orgmode@gnu.org; Sat, 28 Jun 2008 23:29:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KCnbD-0005kH-TX for emacs-orgmode@gnu.org; Sat, 28 Jun 2008 23:29:13 -0400 Received: from [199.232.76.173] (port=39806 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KCnbD-0005kE-Q8 for emacs-orgmode@gnu.org; Sat, 28 Jun 2008 23:29:11 -0400 Received: from rv-out-0708.google.com ([209.85.198.248]:38253) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KCnbD-0003sU-Fn for emacs-orgmode@gnu.org; Sat, 28 Jun 2008 23:29:11 -0400 Received: by rv-out-0708.google.com with SMTP id k29so2101476rvb.6 for ; Sat, 28 Jun 2008 20:29:06 -0700 (PDT) Content-Disposition: inline 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 Hello, In order to edit AsciiDoc files using Org, I have the following line in my .emacs (XEmacs 21.4.21): (add-hook 'org-mode-hook '(lambda () (setq outline-regexp "=+"))) This does let me use Org outlining commands (e.g., tab to collapse/show headings). However, it turns off the pretty font-locking of the headings that I get with the default outline-regexp in org-mode. Could someone tell me how to change outline-regexp for org-mode AND still get full org-mode font-locking? Thank you, Aarre Laakso