Questions tagged [outline-mode]
The outline-mode tag has no usage guidance.
47
questions
2
votes
1
answer
37
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 ...
0
votes
0
answers
23
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 ...
0
votes
0
answers
42
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-...
0
votes
1
answer
26
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 ...
0
votes
1
answer
37
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 (...
0
votes
1
answer
80
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-*//\\*+")
(...
0
votes
0
answers
24
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 ...
1
vote
1
answer
67
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 ...
1
vote
1
answer
45
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
1
answer
155
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
0
answers
228
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
0
answers
130
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 ...
2
votes
1
answer
364
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
1
answer
704
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. ...
0
votes
1
answer
200
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
2
answers
245
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
2
answers
149
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
1
answer
174
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.
,
17
votes
1
answer
351
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
1
answer
63
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
1
answer
299
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
2
answers
417
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
0
answers
375
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
1
answer
145
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
1
answer
513
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?
5
votes
1
answer
641
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
1
answer
762
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
0
answers
68
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
1
answer
65
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
1
answer
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 ...
6
votes
2
answers
750
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, ...
19
votes
3
answers
5k
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 ...
3
votes
1
answer
186
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, ...
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 ...
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 ...
3
votes
1
answer
106
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{...
5
votes
2
answers
737
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 ...
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)?
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.
11
votes
1
answer
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
2
answers
187
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
2
answers
134
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
2
answers
436
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
2
answers
694
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 ...
55
votes
6
answers
21k
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 ...
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 ...
4
votes
2
answers
269
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
*** ...