Questions tagged [outline-mode]

47 questions
55
votes
6 answers

Can I use org-mode to structure my .emacs or other .el configuration file?

My .emacs configuration file gets bigger and bigger and I'd like to get a better overview and structuring by adding headings, subheadings and being able to hide or show them like I can do with Emacs org-mode. I noticed that I can activate org-mode…
MostlyHarmless
  • 1,395
  • 2
  • 13
  • 14
19
votes
3 answers

Move point to previous/next parent heading

This answer describes how to move point to the next or previous heading. I would like to move point to the next or previous heading, which is one level higher up the tree (at the parent level). For example: * One ** OneA ** OneB [] ** OneC * Two If…
SabreWolfy
  • 1,378
  • 1
  • 13
  • 26
17
votes
1 answer

Create a “rabbit hole” task stack that can be pushed/popped?

I frequently fall into a sort of working anti-pattern involving “rabbit holes.”¹ Here’s the form it takes (with a concrete e.g. in parentheses): Start working on something (the “real task”) Discover a misconfiguration related to the task (the…
Trey
  • 865
  • 5
  • 20
11
votes
1 answer

make org-blank-before-new-entry distinguish between a TODO list and a text outline?

Like many of us, I use org-mode for two different things: As a TODO list manager As a text outliner I'd like my blank lines to work differently based on context. TODO list: no blank lines text outline: automatically insert 1 blank line…
incandescentman
  • 4,111
  • 16
  • 53
8
votes
1 answer

How to use AUCTeX and outline-minor-mode together for folding?

I'd like to easily hide or show the text below individual headings in a large Latex document. I thought this should be possible with outline-minor-mode, however I can not get it to work. I can activate the mode, but I don't see how to hide or show…
MostlyHarmless
  • 1,395
  • 2
  • 13
  • 14
6
votes
2 answers

Test whether org-mode heading or list is folded

How can I test in elisp whether an org-mode tree node (either a heading or a list item) is folded? Looking at the code it seems the logic is a little complicated and only in org-cycle-internal-local, with no public API? I've sometimes wished for…
Croad Langshan
  • 3,192
  • 14
  • 42
6
votes
2 answers

Move point to current org heading

In Org mode: How can I move point (up) to the current heading (or the first line under the heading)?
SabreWolfy
  • 1,378
  • 1
  • 13
  • 26
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
1 answer

cycle between headline levels in org mode?

I find that I would like to expose different levels of detail in my org mode buffers; especially while reviewing possbile next steps across many projects. org-shifttab comes close. It will cycle from fully folded to expanding all of the…
jeffmcc
  • 221
  • 1
  • 6
5
votes
2 answers

how to start outline-minor-mode with latex-mode?

I have the following in my .emacs: (add-hook 'latex-mode-hook #'outine-minor-mode) (add-hook 'latex-mode-hook (lambda () (outline-minor-mode 1))) (I am aware this redundant, I am just trying to demonstrate that neither method…
5
votes
2 answers

Set face of outline ellipsis?

Q: how do I change the face of the outline ellipsis? When working with outlines, the (customizable) ellipsis indicates when a section is folded and there is hidden text, eg: * A heading... ** A subheading... *** A subsubheading... The ellipsis is…
Dan
  • 32,584
  • 6
  • 98
  • 168
5
votes
2 answers

Truncate only certain lines and use continuation lines elsewhere?

Q: how can I use truncate-lines in only part of a buffer? As a general rule, I prefer continuation lines to truncating lines. However, it would be nice to truncate only certain kinds of lines in a given buffer. In an ideal world, I would like to…
Dan
  • 32,584
  • 6
  • 98
  • 168
4
votes
2 answers

Configure indentation logic to ignore certain lines?

I am using outshine to organize my code (verilog/systemverilog language). Here is an example use: // * Class definition class my_class extends my_base_class; // code .. // ** Task 1 definition virtual task my_task1; // code .. …
Kaushal Modi
  • 25,203
  • 3
  • 74
  • 179
4
votes
2 answers

Show siblings of visible headers after hide-other

I'm using Outline mode (usually the minor mode, but it shouldn't matter) or Org mode. I have a file that looks like this: -*-outline-*- * Chapter 1 ** Section 1.1 *** Subsection 1.1.1 foo *** Subsection 1.1.2 bar ** Section 1.2 baz * Chapter…
4
votes
2 answers

Show all parentless headings in Outline

I'm using the Outline minor mode. (Or the major mode or Org mode, but in these modes the scenario in this question is rare.) I want to show all of the headings that have no parent, plus the text before the very first heading. In simple cases, this…
1
2 3 4