Questions tagged [outline]
38 questions
46
votes
4 answers
The old "how to fold XML" question
I'm doing quite a bit of manual XML editing (the source definition of some code generation I'm doing is a custom XML format) and of course prefer to use Emacs over any special purpose (usually ugly) XML editors. nXml mode has stood me well in the…

Mark
- 1,409
- 1
- 15
- 20
16
votes
2 answers
Collapse sections in markdown
I use markdown-mode (in conjunction with writeroom-mode) for writing in Emacs. My markdown files generally gets quite large, and I would like to be able to focus on a particular section for extended periods of time.
How can I achieve this?…

Sridhar Ratnakumar
- 493
- 3
- 20
16
votes
2 answers
Outline editing, like org-mode, for JSON
I am trying to edit a Swagger JSON file in emacs. It contains large nested JSON objects, so I want to collapse and hide some of them.
I have tried origami-mode, configured as origami-c-style-parser in origami-parser-alist, but it is quite…

Robin Green
- 949
- 7
- 16
16
votes
3 answers
Changing the appearance of org-mode “hidden contents” ellipsis
In org-mode, when the contents of a subtree are hidden you see something like
* Some tree
:PROPERTIES:...
** Another One...
Is there a way to change those ... to something else? I'd like to use something shorter like a utf-8 ellipsis or a…

Malabarba
- 22,878
- 6
- 78
- 163
7
votes
2 answers
Counting sub-headings in org-mode using elisp
I'm wondering if there is a good method of counting subheadings of a particular heading in org-mode. For example, with the following, return 4 (non-recursively) or 7 (recursively). Note that I don't want to use keywords (ex: TODO) and [/] syntax…

ebpa
- 7,319
- 26
- 53
6
votes
2 answers
Hide all header contents in Org mode
outline-show-all reveals the contents of all headers in org-mode. How can I do the opposite? There's no outline-hide-all command.

Matthew Piziak
- 5,958
- 3
- 29
- 77
5
votes
0 answers
Is there a way to display the number of lines in a fold?
I have tons of nested headings in Org-mode files, usually collapsed, and I'd like to have a quick look at how many lines are under each of collapsed headings (mostly top-level but sometimes not). Having absolute line numbers displayed sort of works,…

aaa
- 426
- 3
- 9
4
votes
1 answer
Enable any outline mode for markdown
First of all, from http://www.emacswiki.org/emacs/AllOut:
Allout outline mode is part of GnuEmacs.
Allout outline mode provides extensive outline formatting and
manipulation beyond standard emacs outline mode. It provides for
structured…

xpt
- 447
- 3
- 16
4
votes
0 answers
Add another level to org-mode visibility cycling
The way S-TAB (org-global-cycle) switches between "top headline -> all headlines -> all content" is great for showing an outline and provide overview, but acts on the full document. Using TAB (org-cycle) works on a local part of the document, but…

ktolbol
- 68
- 4
4
votes
1 answer
Prevent org-mode from unfolding pasted outlines
When I copy an outline into an org-mode buffer, Emacs automatically unfolds it. How can I prevent it from doing so?
I always want the outlines I paste in to be fully folded.
Here's an example:
If my org-mode buffer looks like:
* A
** AA
*** AAA
**…

izkon
- 1,798
- 10
- 23
3
votes
1 answer
Org is implemented on top of Outline mode
Org manual states in its beginning
Org is implemented on top of Outline mode, which makes it possible to
keep the content of large files well structured.
I referenced 'outline-mode' by C-h f outline-mode, and curious about :
Is outline-mode is…

AbstProcDo
- 1,231
- 5
- 15
3
votes
1 answer
How to show all contents of current subtree and fold all the other subtrees?
When using org build subtree navigation functions to move around, I want to show all the content of current one recursively, and hide any other subtrees that having a higher or same level of the current one. How to achieve this ? Thanks !

Saddle Point
- 481
- 7
- 23
2
votes
0 answers
How to convert an org-mode outline into a Microsoft Word outline?
The title of this post says it all: I have an outline in an org-mode file, and I want to convert it to a Microsoft Word document that I can open in "outline view"1.
Unfortunately, the Microsoft Word requirement is non-negotiable in this case; it's…

kjo
- 3,145
- 14
- 42
2
votes
1 answer
bookmark-jump to a hidden part of a buffer
In elisp buffers, I use outline-mode in order to manage headings similarly as in org-mode. But when I jump to a bookmark which points to a hidden part of a buffer (because it is below a folded heading), the point ends up at the lowest visible…

Joon Kwon
- 363
- 1
- 6
2
votes
0 answers
orgstruct-mode error: S- must prefix a single character, not ISO-leftTAB
I am trying out orgstruct-mode with python-mode (but I've also tried go-mode with the same result). If I enable orgstruct-mode and press S-TAB I get the error S- must prefix a single character, not ISO-leftTAB. I would have expected this to cycle…

Whasname
- 21
- 2