Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [visual-line-mode]

The tag has no usage guidance.

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

Incorrect point movement (C-p, C-n) with org-indent-mode

Context: emacs 28.3 doom org-mode visual-line-mode org-indent-mode The problem: Whenever type C-p or C-n, the point most of the time moves to the previous or next visual line. However, the column ...
onlycparra's user avatar
1 vote
1 answer
52 views

Text wrapping in different major modes

I visit a new file, Fundamental mode is automatically selected and newly inserted long lines are wrapped automatically. I create an .org file, Org mode is automatically selected, I manually select ...
user41683's user avatar
0 votes
1 answer
122 views

How to visually indent continuation lines of Org property values to align with the column specified in org-property-format?

Long property values in Org mode property drawers are by default not visually indented in visual-line-mode so as to align with the start column of the property values (as defined in org-property-...
orgtre's user avatar
  • 1,080
3 votes
0 answers
66 views

How to have a right line continuation indicator on the right of `word-wrap`ped lines without "having a right fringe" and while having a left fringe?

In Emacs, I want to have line continuation indicators (the curly arrows by default) shown before or after my wrapped text (e.g. in the fringes). However: I don't want want to be able to tell apart my ...
habit's user avatar
  • 143
0 votes
2 answers
298 views

continuation markers in terminal visual-line-mode

How do I get continuation indicators (a character indicator at the far right edge, normally \) in visual-line mode when I'm working in a terminal emacs. FYI, the continuation markers on visual-line-...
Michael Stenner's user avatar
0 votes
0 answers
42 views

How do I get the Fringe curved arrows to show in word wrap mode?

So I really like those curved arrows that appear in the Wrap at Window Edge option, like in this image: But i don't like that it breaks the words at random places, in this respect I like that the ...
Felipe Dilho's user avatar
3 votes
1 answer
543 views

Enable minor mode for specific files

I have a specific file which I want to always open with visual-line-mode activated. This file cannot be distinguished from others for which I want visual-line-mode deactivated, either by file name/...
wieks's user avatar
  • 31
2 votes
0 answers
244 views

How to justify text only visually (not change the buffer text)?

Is there a way in Emacs Org mode to have the text appear justified on the screen regardless of the size of the window/frame? That is, not alter the buffer text itself (filling, justifying), but just ...
Emmanuel Goldstein's user avatar
1 vote
1 answer
838 views

How to globally disable visual-line-mode in Doom Emacs?

In doom emacs, by default (when starting from the default configuration), visual-line-mode and word-wrap enabled in fundamental, text, prog modes... I would like to disable the visual-line-mode by ...
Robert Zaremba's user avatar
5 votes
0 answers
231 views

Can word-wrap / visual-line-mode have different right margins per paragraph?

When visual-line mode is enabled, words wrap at the window edge. When the window is wide, this makes much too long of a line for comfortable reading. To fix that I have found visual-fill-column-mode, ...
crowding's user avatar
  • 190
1 vote
2 answers
533 views

Disabling visual-line-mode only in org-agenda-mode

My emacs configuration has global visual line mode enabled via (global-visual-line-mode 1). I want to disable this mode, but only when in org-agenda-mode. When I do this manually, via M-x org-agenda, ...
Timo's user avatar
  • 13
1 vote
0 answers
143 views

Why can't I create a full-width overlay and display in the margins at the same time?

I want to create an overlay (or, to avoid X-Y problems, a multicolored, multilayered, visually distinct line at an arbitrary position that cannot be removed, like a page-break) that spans the entire &...
tefkah's user avatar
  • 111
2 votes
1 answer
117 views

How to insert overlay every n visual/screen lines?

I want to insert an overlay at the beginning of every 40th or so visual/screen, to generate a WYSIWYG looking page-break overlay like so: At the moment this is done by font-locking the line-feed ...
tefkah's user avatar
  • 111
0 votes
0 answers
110 views

Scroll by visual line in `centered-cursor-mode`?

Mouse scrolling with visual-line-mode in centered-cursor-mode is jumpy as anything when you're writing prose. A single line of text can be 10 or more visual lines. Editing in refill-mode or auto-fill-...
emacsscroller91's user avatar
2 votes
1 answer
237 views

Number of line as you'd get moving down the buffer with C-n

In a buffer in Emacs, a line is the text you get from the first character after you press "Enter" to the last character before the next "Enter". And so, this is the line numbers ...
Matematikisto's user avatar
1 vote
0 answers
60 views

Left-align text with `visual-line-mode` and `adaptive-wrap-prefix-mode`

When I use visual-line-mode in conjunction with adaptive-wrap-prefix-mode, the wrapped text is not perfectly left-aligned (i.e. the text is not on a straight edge). Instead, it looks like this: Is it ...
johnymm's user avatar
  • 163
1 vote
0 answers
223 views

Swiper go to next matching line instead of next match?

When I use swiper to search and I press the down arrow key, it always goes to the next match even if that match is on the same line. Is there an easy way to go to the next line that has a match ...
Joseph Garvin's user avatar
0 votes
0 answers
109 views

Strange behavior with .txt files in Doom Emacs

In Doom Emacs, I have (add-hook 'text-mode-hook 'visual-line-mode t) in my config.el file. Files with a .txt extension act strangely, though. When the file is first opened, visual-line-mode is ...
Al Gorithm's user avatar
2 votes
1 answer
784 views

Emacs + visual line numbers + folding + visual fill column mode

Relative line numbers for me it's a little bit painful topic. I'm using evil (spacemacs) and I want to jump between lines by in vim style like 10j, 4k etc. Is it possible to get line numbers behavior ...
HarryFox's user avatar
1 vote
2 answers
347 views

Spacemacs evil-mode : How to toggle off visual mode in interactive function call?

;; .spacemacs file (defun my/function (beg end) ;; To work with visual selection: (interactive "r") ;; Displays visual selection in message buffer: (message (buffer-substring-no-...
pietrodito's user avatar
1 vote
1 answer
72 views

visual-line-mode-hook not runnng on mode exit

I would like to have whitespace-newline-mode enabled every time visual-line-mode is enabled, and disabled correspondingly. The documentation on "visual-line-mode-hook" says "Hook run after entering ...
Prospero's user avatar
1 vote
1 answer
232 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. ,
yuxuan's user avatar
  • 781
0 votes
1 answer
276 views

How to indent truncated lines?

For me it seems like a really ruff edge that default spacemacs comes without an option to give my lines a correct indentation, when they are wrapped. (Click the first link if you want to see the issue ...
tbrodbeck's user avatar
  • 189
5 votes
1 answer
211 views

visual-line-mode adaptively wrapping when changing font size

visual-line-mode works fine for line wrapping in eww-mode. However, when I type C-x C-+ / C-x C-- to change the font size, the line wrapping does not adjust accordingly. Does anyone know how can ...
angeldsWang's user avatar
4 votes
1 answer
738 views

Bent arrow (↩) in visual-line-mode

I would like to see a bent arrow (↩) in the window fringe, when I'm using visual-line-mode becuse with no linum-mode (e.g. org, md, latex..) I'm not able to distinguish the lines. References: ...
Francesco Cadei's user avatar
1 vote
2 answers
2k views

Cannot enable visual line mode globally

I would like visual-line-mode to be always on. For this reason I put in the very end of my init.el file the following line of code (global-visual-line-mode 1) (as suggested here). Anyway, the above ...
Nisba's user avatar
  • 905
2 votes
1 answer
1k views

Spacemacs visual line navigation not working

Running spacemacs 0.200.13 on emacs 25.2.2 on Kubuntu 18.04. In ~/.spacemacs, there is: (global-visual-line-mode t) (add-hook 'text-mode-hook #'visual-line-mode) So, when I open a text file, I see ...
deshmukh's user avatar
  • 1,912
1 vote
0 answers
207 views

Make adaptive-wrap tab aware

I am switching to AUCTeX as my LaTeX editor and need tab-aware automatic line wrapping. From this question on stackoverflow I gathered that adaptive-wrap is basically what I need. How can I make ...
Christoph90's user avatar
2 votes
1 answer
525 views

Imitate paragraph spacing in visual line mode

I write long texts using org-mode and visual-line-mode. Each long line, wrapping over several visual lines, looks like a "paragraph", and behaves similarly to a paragraph in a traditional word ...
9000's user avatar
  • 537
4 votes
0 answers
638 views

Visual-line-mode not working in spacemacs

I've seen a lot of questions relating to visual-line-mode not working in specific modes, e.g., org mode, but I can't get it to work in spacemacs in text mode. The relevant part of my .spacmacs file: ...
Marc Adler's user avatar
2 votes
1 answer
169 views

What is the problem with this yank function in elisp in emacs?

Idea I will like to construct a simple emacs function that copies the yy functionality in vim. The function should yank a visual-line into kill ring without deleting the line. Function Here is ...
DBS's user avatar
  • 123
1 vote
1 answer
167 views

How to make *Messages* use visual-line-mode?

I'd like to use visual-line-mode in the *Messages* buffer. I can switch to that buffer and run M-x visual-line-mode, but I want to configure it automatically. I've tried adding this to my init.el, but ...
ivan's user avatar
  • 1,948
1 vote
0 answers
34 views

Line break and indentation in AucTeX [duplicate]

I am using AucTeX in combination with visual-line-mode but sometimes I find it somewhat confusing that a broken line does not follow the "current indentation" which makes it harder to see environments....
Christian's user avatar
  • 379
1 vote
0 answers
570 views

Org column-view with visual-line-mode?

I want to enable visual-line-mode for use with org-column-view, so that the text under each headline wraps underneath. Here is a sample "shopping list" to illustrate what I mean: Notice how the item'...
Adam's user avatar
  • 1,897
2 votes
1 answer
284 views

Highlight a single visual line within a physical line

I want to have a single line in a long-word wrapped line highlighted. The default setting of hl-line seems to highlight the whole wrapped line as shown below. Which setting do I have to change to ...
user3607807's user avatar
9 votes
1 answer
918 views

Is it possible to have word-wrap as standard but truncate some lines in a buffer at the same time?

I'm working with large LaTeX tables in AucTEX and it would be helpful to display them in truncated lines, like here: The red marks are the "&" characters which separate the columns of the table. ...
MostlyHarmless's user avatar