* how to customize outline mode
@ 2005-08-02 16:02 Pete Siemsen
2005-08-04 12:17 ` Per Abrahamsen
0 siblings, 1 reply; 2+ messages in thread
From: Pete Siemsen @ 2005-08-02 16:02 UTC (permalink / raw)
I'd like to use Emacs outline mode to enhance browsing of Juniper
router config files. I can't seem to set outline-regexp correctly.
Juniper config files follow a strict heirarchy - each section is
indented 4 spaces beneath its "heading". Here's a fragment:
group frgp2 {
peer 128.116.254.250 {
local-address 128.116.254.240;
active-source-limit {
maximum 100000;
threshold 90000;
}
}
}
How can I set outline-regexp to make Emacs recognize 4 spaces as a
header delimiter? I tried "( )+", which didn't work.
--
-- Pete
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to customize outline mode
2005-08-02 16:02 how to customize outline mode Pete Siemsen
@ 2005-08-04 12:17 ` Per Abrahamsen
0 siblings, 0 replies; 2+ messages in thread
From: Per Abrahamsen @ 2005-08-04 12:17 UTC (permalink / raw)
Pete Siemsen <siemsen@ucar.edu> writes:
> How can I set outline-regexp to make Emacs recognize 4 spaces as a
> header delimiter? I tried "( )+", which didn't work.
(setq outline-regexp "\\( \\)+")
\( and \) are used for grouping in Emacs regexps (plain "(" and ")"
just match themselves), and escape characters need to be escaped in
Emacs strings.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-04 12:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-02 16:02 how to customize outline mode Pete Siemsen
2005-08-04 12:17 ` Per Abrahamsen
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 NNTP newsgroup(s).