Thanks for the tips.
I found out that a similar library already existed (org-weights.el by
Francois Pinard) which is based of overlays. So I forked his code and
merged my code/ideas into it. Its still a bit buggy, but here are a few
examples of what this (extended) library can do now (I posted this
already on the Org-mode list). Don't bother about the numbers, they are
made up, since I cannot copy overlays:
1. Org-mode/subtree-weights:
,-----------------------------------------------
| * Header 1 * 2 + 1...
| ** Header 2a ** 1
|
| text text text text text
| text text text text text
|
| ** Header 2b ** 1
`-----------------------------------------------
2. Outshine Emacs Lisp/subtree-weights:
,--------------------------------------------------
| ;; * Header 1 * 2 + 1...
| ;; ** Header 2a ** 1
|
| text text text text text
| text text text text text
|
| ;; ** Header 2b ** 1
|
`--------------------------------------------------
3. Conventional Emacs-Lisp/hidden-lines-cookies
,--------------------------------
| ;;; Header 1 [#1]
| ;;;; Header 2a [#4]
|
| text text text text text
| text text text text text
|
| ;;;; Header 2b [#2]
|
`--------------------------------
4. Outshine PicoLisp/hidden-lines-cookies
,--------------------------------
| ## * Header 1 [#1]
| ## ** Header 2a [#4]
|
| text text text text text
| text text text text text
|
| ## ** Header 2b [#2]
|
`--------------------------------
The original repo is at:
,--------------------------------------
|
https://github.com/pinard/org-weights
`--------------------------------------
you can find my fork with the extended version here:
,------------------------------------
|
https://github.com/tj64/org-weights
`------------------------------------
--
cheers,
Thorsten