* Dividers in File
@ 2008-11-18 19:34 David A. Gershman
2008-11-18 19:47 ` Eric Schulte
0 siblings, 1 reply; 9+ messages in thread
From: David A. Gershman @ 2008-11-18 19:34 UTC (permalink / raw)
To: orgmode
In my org file, I have different sections setup. I'd like to separate
the sections with comment dividers. For example, I'd like to have:
#####################
# Section 1
* Heading 1
* Heading 2
* Heading 3
# End Section 1
#####################
#####################
# Section 2
* Heading 1
* Heading 2
* Heading 3
# End Section 2
#####################
But when I fold stuff, I get:
* Heading 1...
* Heading 3...
* Heading 1...
* Heading 3...
Notice the dividers got folded into the trees. Any way to prevent this?
Thanks!
---------------
David A. Gershman
gershman@dagertech.net
http://dagertech.net/gershman/
"It's all about the path!" --d. gershman
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Dividers in File
2008-11-18 19:34 Dividers in File David A. Gershman
@ 2008-11-18 19:47 ` Eric Schulte
2008-11-18 22:21 ` Sebastian Rose
0 siblings, 1 reply; 9+ messages in thread
From: Eric Schulte @ 2008-11-18 19:47 UTC (permalink / raw)
To: David A. Gershman; +Cc: orgmode
Hi David,
Is there any Reason why you don't just make the dividers the first level
of headlines? -- Eric
"David A. Gershman" <dagershman@dagertech.net> writes:
> In my org file, I have different sections setup. I'd like to separate
> the sections with comment dividers. For example, I'd like to have:
>
> #####################
> # Section 1
>
> * Heading 1
> * Heading 2
> * Heading 3
>
> # End Section 1
> #####################
>
> #####################
> # Section 2
>
> * Heading 1
> * Heading 2
> * Heading 3
>
> # End Section 2
> #####################
>
> But when I fold stuff, I get:
>
> * Heading 1...
> * Heading 3...
> * Heading 1...
> * Heading 3...
>
> Notice the dividers got folded into the trees. Any way to prevent this?
>
> Thanks!
>
> ---------------
> David A. Gershman
> gershman@dagertech.net
> http://dagertech.net/gershman/
> "It's all about the path!" --d. gershman
>
>
> _______________________________________________
> 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] 9+ messages in thread
* Re: Dividers in File
2008-11-18 19:47 ` Eric Schulte
@ 2008-11-18 22:21 ` Sebastian Rose
2008-11-19 16:04 ` news.gmane.org
0 siblings, 1 reply; 9+ messages in thread
From: Sebastian Rose @ 2008-11-18 22:21 UTC (permalink / raw)
To: orgmode
Hi David,
"Eric Schulte" <schulte.eric@gmail.com> writes:
> Hi David,
>
> Is there any Reason why you don't just make the dividers the first level
> of headlines? -- Eric
That's what I'd prefer too. I have customized the headline faces
heavily. An (old) screenshot is here:
http://orgmode.org/worg/code/org-info-js/img/emacs23-org.js.org.png
That seems more readable and less clutter to me. The document is folded
to the outline view - the text inside the sections uses a 'normal'
monospace face :-) - which is the one that column view uses.
If you use different setup files for emacs on X and emacs on console, a
similar setup can be used on a fairly modern OS.
Regards,
Sebastian
> "David A. Gershman" <dagershman@dagertech.net> writes:
>
>> In my org file, I have different sections setup. I'd like to separate
>> the sections with comment dividers. For example, I'd like to have:
>>
>> #####################
>> # Section 1
>>
>> * Heading 1
>> * Heading 2
>> * Heading 3
>>
>> # End Section 1
>> #####################
>>
>> #####################
>> # Section 2
>>
>> * Heading 1
>> * Heading 2
>> * Heading 3
>>
>> # End Section 2
>> #####################
>>
>> But when I fold stuff, I get:
>>
>> * Heading 1...
>> * Heading 3...
>> * Heading 1...
>> * Heading 3...
>>
>> Notice the dividers got folded into the trees. Any way to prevent this?
>>
>> Thanks!
>>
>> ---------------
>> David A. Gershman
>> gershman@dagertech.net
>> http://dagertech.net/gershman/
>> "It's all about the path!" --d. gershman
>>
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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
>
--
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.: +49 (0)511 - 36 58 472
Fax: +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: s.rose emma-stil de, sebastian_rose gmx de
Http: www.emma-stil.de
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Dividers in File
@ 2008-11-18 22:25 David A. Gershman
0 siblings, 0 replies; 9+ messages in thread
From: David A. Gershman @ 2008-11-18 22:25 UTC (permalink / raw)
To: orgmode
Not really...just seeing if another way is possible for familiar looks
back from my coding days.
> Hi David,
>
> Is there any Reason why you don't just make the dividers the first level
> of headlines? -- Eric
>
> "David A. Gershman" <dagershman@dagertech.net> writes:
>
> > In my org file, I have different sections setup. I'd like to separate
> > the sections with comment dividers. For example, I'd like to have:
> >
> > #####################
> > # Section 1
> >
> > * Heading 1
> > * Heading 2
> > * Heading 3
> >
> > # End Section 1
> > #####################
> >
> > #####################
> > # Section 2
> >
> > * Heading 1
> > * Heading 2
> > * Heading 3
> >
> > # End Section 2
> > #####################
> >
> > But when I fold stuff, I get:
> >
> > * Heading 1...
> > * Heading 3...
> > * Heading 1...
> > * Heading 3...
> >
> > Notice the dividers got folded into the trees. Any way to prevent this?
> >
> > Thanks!
> >
> > ---------------
> > David A. Gershman
> > gershman@dagertech.net
> > http://dagertech.net/gershman/
> > "It's all about the path!" --d. gershman
> >
> >
> > _______________________________________________
> > 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
>
>
> _______________________________________________
> 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
>
>
---------------
David A. Gershman
gershman@dagertech.net
http://dagertech.net/gershman/
"It's all about the path!" --d. gershman
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Dividers in File
2008-11-18 22:21 ` Sebastian Rose
@ 2008-11-19 16:04 ` news.gmane.org
2008-11-19 17:04 ` Matthew Lundin
2008-11-19 20:50 ` Sebastian Rose
0 siblings, 2 replies; 9+ messages in thread
From: news.gmane.org @ 2008-11-19 16:04 UTC (permalink / raw)
To: Sebastian Rose; +Cc: orgmode
Sebastian Rose schrieb:
> Hi David,
>
>
> "Eric Schulte" <schulte.eric@gmail.com> writes:
>> Hi David,
>>
>> Is there any Reason why you don't just make the dividers the first level
>> of headlines? -- Eric
>
>
> That's what I'd prefer too. I have customized the headline faces
> heavily. An (old) screenshot is here:
> http://orgmode.org/worg/code/org-info-js/img/emacs23-org.js.org.png
>
> That seems more readable and less clutter to me. The document is folded
> to the outline view - the text inside the sections uses a 'normal'
> monospace face :-) - which is the one that column view uses.
>
> If you use different setup files for emacs on X and emacs on console, a
> similar setup can be used on a fairly modern OS.
>
>
>
> Regards,
>
> Sebastian
>
>
>
>
>> "David A. Gershman" <dagershman@dagertech.net> writes:
>>
>>> In my org file, I have different sections setup. I'd like to separate
>>> the sections with comment dividers. For example, I'd like to have:
>>>
>>> #####################
>>> # Section 1
>>>
>>> * Heading 1
>>> * Heading 2
>>> * Heading 3
>>>
>>> # End Section 1
>>> #####################
>>>
>>> #####################
>>> # Section 2
>>>
>>> * Heading 1
>>> * Heading 2
>>> * Heading 3
>>>
>>> # End Section 2
>>> #####################
>>>
>>> But when I fold stuff, I get:
>>>
>>> * Heading 1...
>>> * Heading 3...
>>> * Heading 1...
>>> * Heading 3...
>>>
>>> Notice the dividers got folded into the trees. Any way to prevent this?
>>>
>>> Thanks!
>>>
>>> ---------------
>>> David A. Gershman
>>> gershman@dagertech.net
>>> http://dagertech.net/gershman/
>>> "It's all about the path!" --d. gershman
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>> _______________________________________________
>> 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
>>
>
> --
> Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
>
> Tel.: +49 (0)511 - 36 58 472
> Fax: +49 (0)1805 - 233633 - 11044
> mobil: +49 (0)173 - 83 93 417
> Email: s.rose emma-stil de, sebastian_rose gmx de
> Http: www.emma-stil.de
>
>
> _______________________________________________
> 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
>
Hi Sebastian,
having had a look on the old screenshot I would also like to see how
this looks for my org files. Would you be so kind to share your face
settings?
Thanks,
Rainer
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Dividers in File
2008-11-19 16:04 ` news.gmane.org
@ 2008-11-19 17:04 ` Matthew Lundin
2008-11-20 3:51 ` Eddward DeVilla
2008-11-19 20:50 ` Sebastian Rose
1 sibling, 1 reply; 9+ messages in thread
From: Matthew Lundin @ 2008-11-19 17:04 UTC (permalink / raw)
To: news.gmane.org; +Cc: orgmode
"news.gmane.org" <rainer.stengele@diplan.de> writes:
> Sebastian Rose schrieb:
>> Hi David,
>>
>>
>> "Eric Schulte" <schulte.eric@gmail.com> writes:
>>> Hi David,
>>>
>>> Is there any Reason why you don't just make the dividers the first level
>>> of headlines? -- Eric
>>
[snip]
>>
>>> "David A. Gershman" <dagershman@dagertech.net> writes:
>>>
>>>> In my org file, I have different sections setup. I'd like to separate
>>>> the sections with comment dividers. For example, I'd like to have:
>>>>
>>>> #####################
>>>> # Section 1
>>>>
>>>> * Heading 1
>>>> * Heading 2
>>>> * Heading 3
>>>>
>>>> # End Section 1
>>>> #####################
>>>>
>>>> #####################
>>>> # Section 2
>>>>
>>>> * Heading 1
>>>> * Heading 2
>>>> * Heading 3
>>>>
>>>> # End Section 2
>>>> #####################
>>>>
>>>> But when I fold stuff, I get:
>>>>
>>>> * Heading 1...
>>>> * Heading 3...
>>>> * Heading 1...
>>>> * Heading 3...
>>>>
>>>> Notice the dividers got folded into the trees. Any way to prevent this?
When I need quick dividers for better visibility, I adopt the approach
Eric mentions above. E.g.,
* ----section one------
* Heading one
* Heading two
* ----section two------
* Heading one
* Heading two
- Matt
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Dividers in File
2008-11-19 16:04 ` news.gmane.org
2008-11-19 17:04 ` Matthew Lundin
@ 2008-11-19 20:50 ` Sebastian Rose
1 sibling, 0 replies; 9+ messages in thread
From: Sebastian Rose @ 2008-11-19 20:50 UTC (permalink / raw)
To: emacs-orgmode
Hi Rainer,
I simply used the customize interface for this. My current config has
changed a little, but here it is anyway. I feel it's the best to use
inheritance where ever possible, when it comes to faces. As you can see
below, I just have to change the font-family for `org-level-1', to
change it for all the headlines.
By the time I made the screenshot, I used different colors for the
headline levels.
This is in my .emacs:
=> --->8----------------------------->8----------------------------->8---
(custom-set-faces
;; ... lots of stuff omitted ...
'(org-hide ((nil (:foreground "#ffffff"))))
'(org-latex-and-export-specials ((((class color) (background light)) (:inherit fixed-pitch :foreground "SaddleBrown"))))
'(org-level-1 ((((class color) (min-colors 88) (background light)) (:foreground "gray30" :weight bold :height 170 :family "DejaVu Sans"))))
'(org-level-2 ((((class color) (min-colors 16) (background light)) (:inherit org-level-1 :height 150))))
'(org-level-3 ((((class color) (min-colors 88) (background light)) (:inherit org-level-1 :height 130))))
'(org-level-4 ((((class color) (min-colors 88) (background light)) (:inherit org-level-1 :height 110))))
'(org-level-5 ((((class color) (min-colors 16) (background light)) (:inherit org-level-4))))
'(org-level-6 ((((class color) (min-colors 16) (background light)) (:inherit org-level-4))))
'(org-level-7 ((((class color) (min-colors 16) (background light)) (:inherit org-level-4))))
'(org-level-8 ((((class color) (min-colors 16) (background light)) (:inherit org-level-4))))
'(org-link ((t (:foreground "RoyalBlue" :slant italic :family "DejaVu Serif"))))
;; ... lots of stuff omitted ...
)
<= ---8<-----------------------------8<-----------------------------8<---
And I have this here set:
(setq org-odd-levels-only t)
Regards,
Sebastian
"news.gmane.org" <rainer.stengele@diplan.de> writes:
>
> Hi Sebastian,
>
> having had a look on the old screenshot I would also like to see how
> this looks for my org files. Would you be so kind to share your face
> settings?
>
> Thanks,
> Rainer
--
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.: +49 (0)511 - 36 58 472
Fax: +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: s.rose emma-stil de, sebastian_rose gmx de
Http: www.emma-stil.de
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Dividers in File
2008-11-19 17:04 ` Matthew Lundin
@ 2008-11-20 3:51 ` Eddward DeVilla
2008-11-20 7:26 ` Carsten Dominik
0 siblings, 1 reply; 9+ messages in thread
From: Eddward DeVilla @ 2008-11-20 3:51 UTC (permalink / raw)
To: Matthew Lundin; +Cc: orgmode, news.gmane.org
[-- Attachment #1.1: Type: text/plain, Size: 2262 bytes --]
On Wed, Nov 19, 2008 at 11:04 AM, Matthew Lundin <mdl@imapmail.org> wrote:
> "news.gmane.org" <rainer.stengele@diplan.de> writes:
>
> > Sebastian Rose schrieb:
> >> Hi David,
> >>
> >>
> >> "Eric Schulte" <schulte.eric@gmail.com> writes:
> >>> Hi David,
> >>>
> >>> Is there any Reason why you don't just make the dividers the first
> level
> >>> of headlines? -- Eric
> >>
> [snip]
> >>
> >>> "David A. Gershman" <dagershman@dagertech.net> writes:
> >>>
> >>>> In my org file, I have different sections setup. I'd like to separate
> >>>> the sections with comment dividers. For example, I'd like to have:
> >>>>
> >>>> #####################
> >>>> # Section 1
> >>>>
> >>>> * Heading 1
> >>>> * Heading 2
> >>>> * Heading 3
> >>>>
> >>>> # End Section 1
> >>>> #####################
> >>>>
> >>>> #####################
> >>>> # Section 2
> >>>>
> >>>> * Heading 1
> >>>> * Heading 2
> >>>> * Heading 3
> >>>>
> >>>> # End Section 2
> >>>> #####################
> >>>>
> >>>> But when I fold stuff, I get:
> >>>>
> >>>> * Heading 1...
> >>>> * Heading 3...
> >>>> * Heading 1...
> >>>> * Heading 3...
> >>>>
> >>>> Notice the dividers got folded into the trees. Any way to prevent
> this?
>
> When I need quick dividers for better visibility, I adopt the approach
> Eric mentions above. E.g.,
>
> * ----section one------
> * Heading one
> * Heading two
> * ----section two------
> * Heading one
> * Heading two
>
I've considered that myself, but I just don't like the look of it. More
than once I've wished I could use something like the hline markup and get a
horizontal line that was scoped with the reset of the outline in the
org-buffer and on export. So something like the following
#################
* foo 1
* foo 2
-----
* bar 1
*** bar 1.1
-----
* bar 2
-----
* Baz!
################
would display as
################
* foo 1
* foo2
------------------ <= buffer or wrap wide, doesn't fold into foo2
* bar 1
*** bar 1.1
-------------- <= buffer or wrap wide, doesn't fold into Bar 1.1 but
does fold into Bar 1
* bar 2
------------------ <= buffer or wrap wide, doesn't fold into foo2
* Baz!
################
I'd guess it might not be too hard with the right but I haven't been annoyed
enough to look into it.
Edd
[-- Attachment #1.2: Type: text/html, Size: 3673 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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] 9+ messages in thread
* Re: Re: Dividers in File
2008-11-20 3:51 ` Eddward DeVilla
@ 2008-11-20 7:26 ` Carsten Dominik
0 siblings, 0 replies; 9+ messages in thread
From: Carsten Dominik @ 2008-11-20 7:26 UTC (permalink / raw)
To: Eddward DeVilla; +Cc: news.gmane.org, orgmode
[-- Attachment #1.1: Type: text/plain, Size: 2013 bytes --]
On Nov 20, 2008, at 4:51 AM, Eddward DeVilla wrote:
>
>
> On Wed, Nov 19, 2008 at 11:04 AM, Matthew Lundin <mdl@imapmail.org>
> wrote:
> "news.gmane.org" <rainer.stengele@diplan.de> writes:
>
> When I need quick dividers for better visibility, I adopt the approach
> Eric mentions above. E.g.,
>
> * ----section one------
> * Heading one
> * Heading two
> * ----section two------
> * Heading one
> * Heading two
>
> I've considered that myself, but I just don't like the look of it.
> More than once I've wished I could use something like the hline
> markup and get a horizontal line that was scoped with the reset of
> the outline in the org-buffer and on export. So something like the
> following
>
> #################
>
> * foo 1
> * foo 2
>
> -----
>
> * bar 1
> *** bar 1.1
> -----
> * bar 2
>
> -----
>
> * Baz!
>
> ################
>
> would display as
>
> ################
>
> * foo 1
> * foo2
>
> ------------------ <= buffer or wrap wide, doesn't fold into foo2
>
> * bar 1
> *** bar 1.1
> -------------- <= buffer or wrap wide, doesn't fold into Bar
> 1.1 but does fold into Bar 1
>
> * bar 2
>
> ------------------ <= buffer or wrap wide, doesn't fold into foo2
>
> * Baz!
>
> ################
>
>
> I'd guess it might not be too hard with the right but I haven't been
> annoyed enough to look into it.
It is not too hard to hack this, using org-cycle-hook:
(defun org-cycle-show-hlines (state)
"Show hlines after visibility changes."
(let ((re "^-----+$") beg end)
(save-excursion
(cond
((memq state '(overview contents t))
(setq beg (point-min) end (point-max)))
((memq state '(children folded))
(setq beg (point) end (org-end-of-subtree t t))))
(when beg
(goto-char beg)
(while (re-search-forward re end t)
(outline-flag-region
(1- (match-beginning 0))
(progn (outline-next-heading) (point))
nil))))))
(eval-after-load "org"
'(add-hook 'org-cycle-hook 'org-cycle-show-hlines 'append))
HTH
- Carsten
[-- Attachment #1.2: Type: text/html, Size: 3655 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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] 9+ messages in thread
end of thread, other threads:[~2008-11-20 7:26 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18 19:34 Dividers in File David A. Gershman
2008-11-18 19:47 ` Eric Schulte
2008-11-18 22:21 ` Sebastian Rose
2008-11-19 16:04 ` news.gmane.org
2008-11-19 17:04 ` Matthew Lundin
2008-11-20 3:51 ` Eddward DeVilla
2008-11-20 7:26 ` Carsten Dominik
2008-11-19 20:50 ` Sebastian Rose
-- strict thread matches above, loose matches on Subject: below --
2008-11-18 22:25 David A. Gershman
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).