Questions tagged [visual-line-mode]
34 questions
9
votes
1 answer
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. In case of tables with many columns the latex source…

MostlyHarmless
- 1,395
- 2
- 13
- 14
5
votes
1 answer
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 this be achieved?

angeldsWang
- 111
- 6
4
votes
1 answer
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: LineWrap

Francesco Cadei
- 327
- 3
- 17
4
votes
0 answers
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:
(add-hook 'text-mode-hook…

Marc Adler
- 171
- 3
3
votes
0 answers
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 right fringe from my buffer, either by not…

habit
- 143
- 4
3
votes
0 answers
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, which makes it so that words wrap at a 70-column…

crowding
- 170
- 5
2
votes
1 answer
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/extension or by its contents. For example, running…

wieks
- 21
- 2
2
votes
0 answers
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 visually filling and justifying.
For instance, it…

Emmanuel Goldstein
- 934
- 6
- 18
2
votes
1 answer
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 character (with overlays), which works but it edits…

tefkah
- 101
- 6
2
votes
1 answer
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 one gets to the left of the buffer when you are in the…

Matematikisto
- 123
- 4
2
votes
1 answer
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 in emacs just like in vim?
There is two mutually…

HarryFox
- 41
- 2
2
votes
1 answer
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 long lines as multiple screen lines.
But when I…

deshmukh
- 1,852
- 13
- 29
2
votes
1 answer
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 processor.
I would like to see some extra spacing…

9000
- 497
- 2
- 15
2
votes
1 answer
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 the function I came up with.
(defun…

DBS
- 123
- 4
2
votes
1 answer
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 highlight only the line in which the cursor is…

user3607807
- 51
- 2