Questions tagged [visibility]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
95 views

Make region(s) invisible (not evaluated) to query-replacy and similar commands

Is there a way to make some regions of the buffer invisible (I mean not evaluated by) to query-replace and similar commands? Let me better explain with an example. Let's take a piece of LaTeX code .....
2
votes
1answer
48 views

Dynamically hide lines indented more than current line

Is there a way to dynamically hide lines that are indented more than the current line? For example, if I am looking at this file { "a": 1 "b": { "c": { "d": 2 } } } and I am on ...
0
votes
2answers
39 views

Command to apply invisible property to selection

I would like to have a command that makes selected text invisible, and another to make selected text visible. Currently I have (buffer-invisibility-spec '(a . t)) (global-set-key (kbd "C-c i") (...
2
votes
0answers
29 views

isearch with invisible text properties, not overlays?

Q: how can I get isearch to understand invisible text properties, not just overlays? I'm writing a major mode that uses text properties rather than overlays to toggle visibility. I'd like to use ...
8
votes
1answer
518 views

Hide comment in current buffer

Is their a way to hide comment whatever the language used? Like if I'm in cpp mode all /* ... */ should be hide and if I'm on LaTeX mode, all % ... will be hide.
1
vote
2answers
109 views

How to make an invisible overlay displaying other text clickable

I've been trying to add the ability to unfold with mouse by clicking on ellipsis in my json-mode, but after considerable time spent experimenting and looking through the Elisp manual, I can't figure ...
0
votes
1answer
41 views

Why do parts of my Emacs buffer turn invisible when I'm writing elisp?

When I'm writing elisp code, parts of the buffer that I press enter on turn invisible (i.e. they get the property invisible set to t). I haven't been able to reproduce this reliably, because it doesn'...
2
votes
1answer
33 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
110 views

Folding headers containing source code blocks in an org file?

I always refer to org mode when I want to document anything, but what I am struggling with right now is how to make folding mechanism work when my headers contain source code blocks under a list ...
5
votes
1answer
100 views

Toggle text visibility

I would like to temporarily not be able to see what I am writing (counter-intuitive, I know, but sometimes it's helpful to not be able to immediately criticize what you are writing in order to ...
1
vote
0answers
49 views

org heading temporarily not visible when folding

Sometimes when I close all the folds in org mode one of my headings becomes invisible. It depends on where my cursor is at the time of the fold. But despite my testing I don't know a hard fast rule ...
4
votes
0answers
161 views

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-...
3
votes
1answer
315 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 ...
5
votes
1answer
140 views

How to prevent org-mode from repositioning text in the window when cycling visibility?

In org-mode, when I cycle through the visibility of the document via the TAB key (org-cycle), the text sometimes gets repositioned. If there is enough text below the headline such that it will not ...
2
votes
1answer
120 views

How can I tell if a buffer is already visible?

I'd like to have the following code in my library: (when (not (buffer-visible-p es-results-buffer)) (delete-other-windows) (view-buffer-other-window es-results-buffer)) However, I haven't been ...
0
votes
1answer
136 views

How to use outline-minor-mode to hide some exam class exercises in auctex

I use the exam document class in auctex to write exams for my students. I want to use the features provided by the outline-minor-mode to hide all the exercises I have finished and only show the one I ...
4
votes
1answer
1k views

Org mode initial visibility with #+STARTUP

What is the meaning of the possible values for #+STARTUP?
3
votes
1answer
580 views

Persistently hide cursor [evil-mode problem]

If I hide the cursor in a buffer with (setq cursor-type nil) it will reappear if I move it around. Is there a way for hiding the cursor all the time (only for one specific buffer)?
7
votes
1answer
91 views

Sane settings to show context when doing search and replace in org-mode

If I run certain functions like isearch-forward (with C-s) in an org-mode buffer, all content become temporarily visible. When I end the search, headings automagically collapse the way they were ...
1
vote
0answers
170 views

How do I change the visibility cycling in orgmode?

Currently when I press TAB it uses this: ,-> FOLDED -> CHILDREN -> SUBTREE --. But I would like it to behave like other outliners. If I press TAB once it should open the children. It I press TAB ...
4
votes
1answer
265 views

Copy text as it is rendered by Emacs

I have Emacs doing a bunch of smart things to display text for me. In particular, some text has the invisible property set, and I'm running adaptive-wrap with <!-- adaptive-wrap-extra-indent: 3 --&...
1
vote
0answers
308 views

Headlines with “children” initial visibility reveals drawer names--why?

I would like to see all first-level children of my level 1 headlines when I open an org-mode file. I have assigned property values of :VISIBILITY: children to all my level 1 headlines. When I open the ...