Questions tagged [outline-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Indent Headers in outline-minor-mode

In org mode, we can use the org-indent-mode hook to indent each header level, making a document with an outline more readable. However, with outline-minor-mode, we the org-indent hook doesn't seem to ...
1
vote
1answer
43 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 ...
0
votes
1answer
65 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-...
0
votes
0answers
144 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 ...
1
vote
0answers
73 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 ...
1
vote
1answer
184 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 ;;; ...
1
vote
1answer
434 views

Remapping the `g` prefix key for all modes (Evil, org and outline minor mode), assigning a single function to `g`

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. ...
0
votes
1answer
139 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 ...
1
vote
2answers
133 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 ...
0
votes
2answers
117 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 ...
1
vote
1answer
53 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. ,
16
votes
0answers
304 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”) ...
2
votes
1answer
50 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)...
0
votes
1answer
242 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-...
1
vote
2answers
346 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: ...
1
vote
0answers
290 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 ========== ...
1
vote
1answer
119 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 ...
1
vote
1answer
369 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?
4
votes
1answer
405 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 ...
3
votes
1answer
627 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 ...
0
votes
0answers
62 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'...
1
vote
1answer
55 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?
3
votes
1answer
1k 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 ...
6
votes
2answers
573 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, ...
16
votes
3answers
4k 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 ...
2
votes
1answer
145 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, ...
4
votes
2answers
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 ...
5
votes
2answers
981 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 ...
3
votes
1answer
93 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{...
3
votes
2answers
636 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 ...
5
votes
2answers
946 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)?
3
votes
1answer
981 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.
10
votes
1answer
2k 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 ...
4
votes
2answers
168 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 ...
2
votes
2answers
125 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-...
2
votes
2answers
396 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 ...
4
votes
2answers
612 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 ...
52
votes
6answers
19k 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 ...
7
votes
1answer
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 ...
4
votes
2answers
251 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 *** ...