* outline-regexp and font locking
@ 2008-06-29 3:29 Aarre Laakso
2008-07-01 23:34 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Aarre Laakso @ 2008-06-29 3:29 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: outline-regexp and font locking
2008-06-29 3:29 outline-regexp and font locking Aarre Laakso
@ 2008-07-01 23:34 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-07-01 23:34 UTC (permalink / raw)
To: Aarre Laakso; +Cc: emacs-orgmode
Hi Aare
In Org-mode, the outline starter is hard-coded to be "*", so you
cannot without problems change the outline regexp.
What you can to is use outline-mode to edit your file, change the
outline regexp for that, and then use tricks like listed here
http://orgmode.org/worg/org-faq.php#1.3
to get some of Org's functionality into that mode.
- Carsten
On Jun 28, 2008, at 8:29 PM, Aarre Laakso wrote:
> 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
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-01 23:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-29 3:29 outline-regexp and font locking Aarre Laakso
2008-07-01 23:34 ` Carsten Dominik
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).