Questions tagged [visibility]

31 questions
9
votes
1 answer

Org mode initial visibility with #+STARTUP

What is the meaning of the possible values for #+STARTUP?
nephewtom
  • 2,219
  • 17
  • 29
9
votes
1 answer

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.
Romain Picot
  • 193
  • 1
  • 6
7
votes
1 answer

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 before I searched. Nice. But if I run something like…
Brian Z
  • 2,863
  • 16
  • 22
6
votes
1 answer

How to change the default transient level temporarily? ("Show hidden magit commands")

Many commands that are rarely used in magit are hidden by default. Magit uses the transient.el library for popups and the visibility of infix and suffix commands are controlled by transient-default-level. For example: At the default level (4),…
ebpa
  • 7,319
  • 26
  • 53
6
votes
1 answer

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 actually get some writing done). One solution would be…
Paul Brodersen
  • 163
  • 1
  • 5
6
votes
2 answers

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 all fit within the window when it is expanded, Emacs…
6
votes
1 answer

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 able to find a function for buffer-visible-p. Is…
Lee H
  • 2,697
  • 1
  • 16
  • 31
5
votes
1 answer

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 set. I'm wondering whether I can copy the text as…
kuzzooroo
  • 301
  • 1
  • 7
4
votes
0 answers

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-cycle) works on a local part of the document, but…
ktolbol
  • 68
  • 4
3
votes
2 answers

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 ... in the following equation , \begin{equation} x +…
3
votes
1 answer

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 rest of my text go? How do I see what else is in that…
tom_kp
  • 81
  • 4
3
votes
1 answer

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)?
clemera
  • 3,401
  • 13
  • 40
2
votes
1 answer

Emacs visibility not working

I tried C-c C-x p to set property as VISIBILITY and value as folded. The output looks like this: * Org Headline Description :PROPERTIES: :VISIBILITY: folded :END: But when I close and reopen the file, this headline still shows up in its full…
Inspired_Blue
  • 278
  • 2
  • 12
2
votes
1 answer

How to hide comments and move them to a separate window?

I'm interested in hiding comments in code or structured text, but displaying them in another window; i.e. same buffer, two windows side-by-side, one showing the main text (code, or content), but hiding or minimizing comments, and the other window…
Jacob Lee
  • 227
  • 1
  • 7
2
votes
1 answer

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 the line with "b", I would see something like { …
Troy Daniels
  • 487
  • 2
  • 13
1
2 3