Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [visibility]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
35 views

How to highlight invisible text when using `visible-mode`?

I sometime use visible-mode to show hidden elements in buffers. For example, I have org-hide-emphasis-markersset to t, but I sometimes want to see them. This works very well with visible-mode, however ...
user avatar
  • 1,775
2 votes
1 answer
29 views

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 ...
user avatar
  • 197
0 votes
1 answer
165 views

Add invisible text property in org-mode

Suppose I have a function like my-make-invisible, where my-re is some regexp: (defun my-make-invisible () (save-excursion (goto-char (point-min)) (while (re-search-forward my-re nil t) ...
user avatar
  • 51
1 vote
1 answer
69 views

Focus a buffer window if already visible; open a window with the buffer if not

I'd like to use a single function (and later keybind it to a single key) that would do the following: if treemacs is visible in the frame, focus to its window; if not, call treemacs. I took a look ...
user avatar
6 votes
1 answer
473 views

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-...
user avatar
  • 6,794
0 votes
1 answer
83 views

Keep heading contents always visible in org-mode

How can you keep a heading's main content always visible in org-mode? Perhaps a property that can be set, so that S-tab never collapses it? (Not keeping the children's contents visible, unless they ...
user avatar
  • 1,463
2 votes
1 answer
98 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 ...
user avatar
0 votes
2 answers
136 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") (...
user avatar
2 votes
0 answers
72 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 ...
user avatar
  • 31k
1 vote
2 answers
393 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 ...
user avatar
3 votes
2 answers
114 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 .....
user avatar
0 votes
1 answer
57 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'...
user avatar
2 votes
1 answer
54 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)...
user avatar
  • 321
0 votes
1 answer
275 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 ...
user avatar
  • 1,612
6 votes
1 answer
191 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 ...
user avatar
1 vote
0 answers
67 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 ...
user avatar
  • 1,283
4 votes
0 answers
257 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-...
user avatar
  • 68
3 votes
1 answer
666 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 ...
user avatar
  • 81
6 votes
1 answer
293 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 ...
user avatar
5 votes
1 answer
279 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 ...
user avatar
  • 2,549
1 vote
1 answer
180 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 ...
user avatar
8 votes
1 answer
4k views

Org mode initial visibility with #+STARTUP

What is the meaning of the possible values for #+STARTUP?
user avatar
  • 2,039
2 votes
1 answer
1k 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)?
user avatar
  • 3,211
7 votes
1 answer
112 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 ...
user avatar
  • 2,733
1 vote
0 answers
212 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 ...
user avatar
1 vote
0 answers
375 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 ...
user avatar
  • 482
9 votes
1 answer
667 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.
user avatar
5 votes
1 answer
390 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 --&...
user avatar
  • 301