Questions tagged [visual-line-mode]
The visual-line-mode tag has no usage guidance.
26
questions
0
votes
0answers
30 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-...
0
votes
0answers
14 views
Fontlock markup disappers when visual line is active
I have the following setting in my .emacs.d folder.
(defface org-commentary
'((t :foreground "tan1"))
"Face for commentary text in org mode")
(defface org-commentary-delimiter
...
2
votes
1answer
65 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 ...
0
votes
0answers
40 views
Visual-line-mode and org-indent-mode are not working together
If I understand correctly, the documentation says the visual-line-mode should now play nicely with org-indent-mode. That is not the case for me. It seems very buggy!
Note when I first collapse all ...
0
votes
0answers
24 views
Truncate/Wrap current line
Is there a way to wrap the current line only?
I know toggle-truncate-lines will work on entire buffer, but I would only want to work on a single line specifically.
1
vote
0answers
16 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 ...
1
vote
0answers
52 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 ...
0
votes
0answers
64 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 ...
1
vote
1answer
235 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 ...
1
vote
2answers
133 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-...
1
vote
1answer
34 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
37 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.
,
0
votes
1answer
152 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 ...
5
votes
1answer
130 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
384 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
votes
1answer
564 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
1answer
930 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
148 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 ...
2
votes
1answer
199 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
531 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
108 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
99 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
398 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'...
2
votes
1answer
134 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 ...
8
votes
1answer
585 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. ...