7
votes
How do I prevent extremely long lines making Emacs slow?
I created my own solution for this problem here: https://github.com/rakete/too-long-lines-mode
I was not satisfied with phils solution which switches a buffer with very long lines to fundamental-mode,...
4
votes
Make visual-line-mode more compatible with org-mode
The package phscroll written by misohena perfectly solved the problem. It adds overlays to beginning/end of line if the width of elements like org-table exceeds the length, while keeps the line-wraps ...
3
votes
Accepted
How to avoid term turn line wrap into line break for long output
As @npostavs posted in comment:
(setq term-suppress-hard-newline t)
3
votes
How to prevent eww from truncating lines?
I'm using eww, and needed line wrapping. First I tried line truncation, but that cut through the middle of words.
visual-line-mode seems to provide intelligent line-wrapping on whitespace in the most ...
3
votes
Accepted
How to prevent eww from truncating lines?
A little investigation indicates that you'll need to modify the various shr-fill-* functions to achieve this. The shr-width variable may or may not still be relevant at that point, but it seems ...
2
votes
Pasting Text from Clipboard - why ^M instead of linebreaks?
Combined with @aagaard 's solution. This worked for me:
(if (eq system-type 'windows-nt)
(progn
(set-clipboard-coding-system 'utf-16-le)
(set-selection-coding-system 'utf-16-le))
(...
2
votes
How do I prevent extremely long lines making Emacs slow?
Emacs 29 will feature improvements in that area. A lot of that is optimizing the display engine subroutines to work better with longer lines. Better algorithmic complexity, I imagine.
2
votes
How do I prevent extremely long lines making Emacs slow?
Although the question asks for how to handle long lines in a file, I often experience this problem when working with a buffer such as a command interpreter, or comint (e.g. shell). It may be possible ...
2
votes
Accepted
Function for creating a new line but leaving point in same column
(emacs) Inserting Text describes that RET, by default, exhibits similar behaviour, in that it performs mode-dependent indentation on the new line.
I believe the only built-in mode-independent way to ...
1
vote
How to remove the 'line breakable' property for all the thousands of Chinese characters?
C-h f modify-category-entry says:
modify-category-entry is a primitive-function in ‘src/category.c’.
(modify-category-entry CHARACTER CATEGORY &optional TABLE RESET)
Modify the category set of ...
1
vote
Function for creating a new line but leaving point in same column
Basil gave a good answer for this question.
Here's another way to do it, albeit a bit crazy. ;-)
(defun my-newline-and-indent (&optional n)
(interactive "*p")
(picture-mode)
(picture-open-...
1
vote
Make visual-line-mode more compatible with org-mode
This is a good question! The same issue applies when you have an Org table that is wider than fill-column. What I do is open the section in an indirect buffer with org-tree-to-indirect-buffer i.e. C-c ...
1
vote
How do I prevent extremely long lines making Emacs slow?
In my shell-mode buffers (M-x shell), I find myself piping to cut -c 1-2000 to avoid long lines.
1
vote
Editing files with one-sentence-per-line
Jan Seeger has made Twauctex. One of the features it provides is
Enable one-sentence-per-line mode.
It says:
Usage
Simply write your latex as you would normally. twauctex will take care of breaking ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
line-break × 25indentation × 3
auctex × 3
fill-paragraph × 3
org-mode × 2
spacemacs × 2
copy-paste × 2
motion × 2
display × 2
performance × 2
wrapping × 2
visual-line-mode × 2
fill-column × 2
key-bindings × 1
latex × 1
init-file × 1
microsoft-windows × 1
hooks × 1
search × 1
files × 1
text-editing × 1
term × 1
html × 1
replace × 1
find-file × 1