Questions tagged [visual-line-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
1answer
371 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 ...
1
vote
0answers
8 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 ...
0
votes
1answer
111 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 ...
1
vote
0answers
22 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 ...
2
votes
1answer
98 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 ...
0
votes
0answers
17 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 ...
8
votes
1answer
432 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. ...
0
votes
1answer
74 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 ...
0
votes
2answers
68 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-...
0
votes
0answers
135 views

JSON multiline String with line wrapping?

I have a JSON file with an object containing a long String with linebreaks \n like so: { ... "subtitle": "**Thesis:** 1-Loop Anomalous Dimensions of 4-Quark Operators\n\n Specializing in ...
1
vote
1answer
21 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 ...
1
vote
1answer
34 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. ,
5
votes
1answer
117 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 ...
2
votes
1answer
306 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: ...
1
vote
1answer
728 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 ...
1
vote
0answers
126 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 ...
1
vote
1answer
125 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 ...
3
votes
0answers
509 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: ...
2
votes
1answer
95 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 ...
1
vote
1answer
90 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 ...
1
vote
0answers
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....
1
vote
0answers
365 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'...