Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [outline-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
56 votes
6 answers
22k views

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 ...
MostlyHarmless's user avatar
19 votes
3 answers
6k views

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 ...
SabreWolfy's user avatar
  • 1,428
18 votes
1 answer
364 views

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”) ...
Trey's user avatar
  • 905
12 votes
1 answer
3k views

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 ...
incandescentman's user avatar
8 votes
1 answer
4k views

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

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 ...
MostlyHarmless's user avatar
6 votes
2 answers
1k views

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's user avatar
  • 1,428
6 votes
2 answers
1k views

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's user avatar
6 votes
2 answers
791 views

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, ...
Croad Langshan's user avatar
5 votes
2 answers
1k views

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 ...
Dan's user avatar
  • 33.1k
5 votes
1 answer
693 views

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 ...
jeffmcc's user avatar
  • 221
5 votes
2 answers
1k views

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 ...
Marcus Junius Brutus's user avatar
5 votes
2 answers
276 views

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 *** ...
Gilles 'SO- stop being evil''s user avatar
5 votes
2 answers
772 views

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 ...
Dan's user avatar
  • 33.1k
4 votes
2 answers
721 views

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 ...
Kaushal Modi's user avatar
  • 25.7k
4 votes
2 answers
2k views

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 ...
Saddle Point's user avatar
4 votes
2 answers
191 views

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 ...
Gilles 'SO- stop being evil''s user avatar
3 votes
1 answer
197 views

Shift-c acts as Control in Outline mode

I recently started having an issue. I am unsure as to how long it has existed, but it must have occurred during the past week. Whenever I type Shift-c, Emacs does not interpret it as the character C, ...
zalba19's user avatar
  • 143
3 votes
1 answer
799 views

org mode not showing all the text in my file?

I am new to Emacs and struggling to learn it. I have a test.org file: * Heading ** Sub-Heading *** Third-level When I open the file, the buffer just displays: * Heading... Where did all the ...
tom_kp's user avatar
  • 81
3 votes
1 answer
115 views

Change overlaid text of an outline header?

Q: how do I add a new outline header regexp but change the overlaid text? I often write presentations with Beamer in LaTeX. As such, there are a lot of frame (ie, "slide") environments: \begin{...
Dan's user avatar
  • 33.1k
2 votes
2 answers
446 views

Trying to enable keybindings for 'outshine': "set before outline-mode is loaded"

I'm just getting started with outshine, and I'm trying to enable outshine's keybindings, but I am stumped by the directive in the readme to ...set the outshine prefix (M-#) in your init file before ...
Steven Arntson's user avatar
2 votes
1 answer
444 views

Emacs outline-mode custom heading and space between headers

I'm trying to define a structure for outline-minor-mode so I can organize my init.el conf without relying in org. So far I could not get to work with two levels of heading, I would like to have ;;; ...
jacksonbenete's user avatar
2 votes
1 answer
43 views

risky file local “outline-level”

I'm reading (info "(emacs) 25.9.1 Format of Outlines"): can explicitly specify a rule for calculating the level of a heading line by setting the variable outline-level. ...... The ...
shynur's user avatar
  • 5,328
2 votes
2 answers
143 views

How create a function to navigate between text and header?

I tried org-mode, and I'm impressed. My org-file for notes is organized like this: Header 1 Sub header 1 Foo [ cursor here] Bar Sub header 2 Currently I use the function org-...
ReneFroger's user avatar
  • 3,880
2 votes
1 answer
66 views

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)...
Joon Kwon's user avatar
  • 363
1 vote
1 answer
46 views

Reverting back to higher heading

Here is a sample text to illustrate my difficulty: * H1 L1 Some introductory text for H1 ** H2 L2 Some text relating to H2 L3 This is part of H2. But I would like it to be part of H1 only, not part of ...
deshmukh's user avatar
  • 1,912
1 vote
2 answers
272 views

How to count direct or indirect children in org or outline mode

I want to count the number of children in a subtree in org-mode. I am able to count the number of recursive children with (outline-next-heading): (defun outline-count-subheadings (&optional ...
emonigma's user avatar
  • 1,907
1 vote
1 answer
161 views

Why doesn't the ##* outline work with Python?

I have the following configuration for outlines in my init.el file: (defvar my-outline-regexp-alist '((emacs-lisp-mode . "\\s-*;;\\*+") (js2-mode . "\\s-*//\\*+") (...
raylight's user avatar
  • 237
1 vote
1 answer
233 views

Add code block line in emacs

In visual studio, there is a very convenient line with + and - to show the code which blocks it belongs to. I was wondering if there was the same function in emacs. ,
yuxuan's user avatar
  • 781
1 vote
2 answers
437 views

outline levels without different length of the match

I'm new to Emacs. I'm trying to use the outline-mode with a specific requirement. I would like to have the number 1 corresponding to the level 1, the number 2 corresponding to level 2 and so on: ...
Alain Guillaume's user avatar
1 vote
1 answer
68 views

How to fold the highest headline which I am currently in?

I often do the following sequence in my org-mode file: Go to the root headline from current position Fold the whole subtree Is there a way to this sequence with a shortcut?
asiegf's user avatar
  • 175
1 vote
1 answer
159 views

How to hide frame environment in outline minor mode?

I am using AUCTex and outline-minor-mode to produce Latex presentations with beamer. I wonder how I could tell the outline-minor-mode to hide the content of a frame. I am not into LISP by now, so ...
stevosn's user avatar
  • 291
1 vote
1 answer
543 views

outline mode: Fold everything when loading file (specifically LaTeX mode)

I am using outline minor mode for LaTeX mode and would like emacs to automatically hide all section environments when opening a .tex file. How could I do that?
lo tolmencre's user avatar
1 vote
1 answer
84 views

Emacs hide some of the documents in Typescript

I'm using Doom emacs. I developing an App in Typescript. I just encounter a strange behavior of Emacs that compact the description of lsp-buffer like in the image below. Does anyone know how to ...
Chop TRAN's user avatar
  • 111
1 vote
0 answers
142 views

"outline-regexp" doesn't match headings that matches ";;;###autoload"

The context Consider this file main.el ;;; Heading no. 1 ; This is not a heading ;; This is not a heading ;;;This is not a heading because there is no space after the the ";;;" ;;; Heading ...
doltes's user avatar
  • 587
1 vote
1 answer
785 views

How to assign a command to "g" key when using evil

The question is quite intricate. I am using doom-emacs and evil and I am customizing the keys. Usually, something like (define-key evil-normal-state-map "g" 'evil-paste-after) would work. ...
Rareform's user avatar
  • 219
1 vote
0 answers
391 views

outline minor mode folding enhancements wanted

This query is two questions both related to latex major mode (not Auctex), outline minor mode, code folding. I eventually solved these questions myself. My "answers are given below the ========== ...
zugzwang's user avatar
  • 319
0 votes
2 answers
72 views

Emacs calling unbound key sequence `C-c @` a "non-prefix key" [closed]

Emacs won't let me bind C-c @ TAB to outline-cycle in outline-minor-mode. It complains "Lisp error: (error "Key sequence C-c @ TAB starts with non-prefix key C-c @") -- but C-c @ is ...
Jeffrey Benjamin Brown's user avatar
0 votes
2 answers
163 views

how to tell org mode to make subsequent lines children of the hierarchy

I have a list like this: remember to undo: product 0 discrimination limit(100) ENV['MANUAL_...'] When point is at the beginning of line 1, how can I tell org mode to make subsequent lines children ...
american-ninja-warrior's user avatar
0 votes
1 answer
50 views

Changing the definitions of outline-minor-mode headings

I would like to change the pattern for heading in outline-minor-mode. Have came up with the following implementation for emacs-lisp-mode that uses a minor-mode called taxocask-minor-mode. (defvar ...
Dilna's user avatar
  • 1
0 votes
1 answer
195 views

Show only headers in outline mode when I open my dot emacs

I use outline-minor-mode to organize my .emacs file. I have this code at the end to activate it in the file: ;;; Local Variables: ;;; eval: (outline-minor-mode 1) ;;; eval: (hide-body) ;;; outline-...
Edman's user avatar
  • 1,229
0 votes
1 answer
220 views

outshine mode changes outline-regexp from markdown's

patient StackExchange, I am learning org-mode and liking its header-folding capacities, which seem much easier than outline-minor-mode. Most of my work is done in markdown mode, though, so I am ...
Steve Petersen's user avatar
0 votes
1 answer
331 views

Custom Outline mode key binding

I want to set a key binding for outline-next-visible-heading but I fail to do so. I believe using hooks is a solution for this so I added this to my .emacs (defun outline-mode-test-hook() (define-...
Pommy's user avatar
  • 124
0 votes
0 answers
24 views

Is it possible to do code folding like feature but for reST/sphinx documents in emacs

I am switching from org-mode to writing docs/notes etc. in restructured text. I was wondering if in emacs we can achieve section/subsection level code folding. An outline-mode in a separate buffer ...
Kabira  K's user avatar
  • 103
0 votes
0 answers
44 views

outline-minor-mode works for Haskell but not Python

I can use outline-minor-mode to fold Haddock-style headings in Haskell code. For instance, consider the following file: -- (haskell-mode) -- (outline-minor-mode) -- (setq-local outline-regexp "-- ...
Jeffrey Benjamin Brown's user avatar
0 votes
0 answers
29 views

emacs-lisp-mode overriding outline-level

I am changing the heading pattern for outline-minor-mode and have noticed that one needs to have the following (setq-local outline-level 'outline-level) because emacs-lisp-mode overrides the default ...
Dilna's user avatar
  • 1
0 votes
0 answers
88 views

Setting outline-regexp and outline-heading-alist according to major mode

I have made a minor mode that is supposed to customise outline-minor-mode. (defun tematika-tools () "Define Heading Patterns and Levels for different major modes" (require 'tematika-...
Dilna's user avatar
  • 1
0 votes
1 answer
46 views

org-content function equivalent for using in the outline-minor-mode

I know I can use the function org-content to fold all my outlines to specific levels when I'm in org-mode. That means: Using (org-content 1) will fold all my org outlines to the first level Using (...
raylight's user avatar
  • 237
0 votes
0 answers
30 views

Controlling Placement of Ellipses in Outline Mode: At End of Line or On Separate Line?

I have the following file opened in outline mode: * Heading 1 body ** Sub-heading 1 body *** Child 1 body *** Child 2 body **** Buried Deep body ** Sub-heading 2 body *** Child 1 body When I ...
StackExchanger's user avatar
0 votes
0 answers
246 views

New bidi problems with outline-mode / org-mode (Arabic, Hebrew,..)

Some time ago (maybe 3 months) I've noticed some problems with the bidi support (right-to-left languages) in org-mode. One problem I can't reproduce: The characters have then a strange form but If I ...
rl1's user avatar
  • 356
0 votes
0 answers
70 views

How to determine if a buffer will respond to outline-mode commands

I'm hacking together an extension which will display a sidebar with an outline of whatever document you're working on. It was initially written to support writing in markdown-mode, but the technique I'...
abingham's user avatar
  • 927