Questions tagged [visual-line-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 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 ...
user avatar
0 votes
1 answer
35 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/...
user avatar
  • 1
2 votes
0 answers
86 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 ...
user avatar
0 votes
0 answers
23 views

Disable wrapping of headings in org mode

Is it possible to get the effect of toggle-truncate-lines only on the headings of an org-file? If so, how to do it? This whould work on the fly, i.e. heading lines shouldn't wrapped at all, but the ...
user avatar
  • 967
1 vote
1 answer
184 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 ...
user avatar
2 votes
0 answers
64 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, ...
user avatar
  • 140
0 votes
0 answers
12 views

Can adaptive-wrap be made to wrap to the start column of inline comments?

IN A NUTSHELL In an emacs buffer containing code (and subject to the relevant major mode), where some lines have long in-line comments, is it possible to have the adaptive-wrap package do its job with ...
user avatar
  • 131
1 vote
1 answer
130 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, ...
user avatar
  • 13
1 vote
0 answers
44 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 &...
user avatar
  • 91
2 votes
1 answer
52 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 ...
user avatar
  • 91
0 votes
0 answers
72 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-...
user avatar
2 votes
1 answer
160 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 ...
user avatar
1 vote
0 answers
34 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 ...
user avatar
  • 143
1 vote
0 answers
141 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 ...
user avatar
0 votes
0 answers
91 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 ...
user avatar
1 vote
1 answer
461 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 ...
user avatar
1 vote
2 answers
255 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-...
user avatar
1 vote
1 answer
51 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 ...
user avatar
1 vote
1 answer
66 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. ,
user avatar
  • 741
0 votes
1 answer
205 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 ...
user avatar
  • 167
5 votes
1 answer
159 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 ...
user avatar
3 votes
1 answer
497 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: ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
  • 835
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 ...
user avatar
  • 1,668
1 vote
0 answers
173 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 ...
user avatar
2 votes
1 answer
371 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 ...
user avatar
  • 467
4 votes
0 answers
574 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: ...
user avatar
2 votes
1 answer
147 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 ...
user avatar
  • 123
1 vote
1 answer
124 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 ...
user avatar
  • 1,764
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....
user avatar
  • 349
1 vote
0 answers
474 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'...
user avatar
  • 1,775
2 votes
1 answer
196 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 ...
user avatar
8 votes
1 answer
777 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. ...
user avatar