Questions tagged [line-truncation]
14 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
7
votes
1 answer
How to truncate lines by default
Almost every text editor is able to truncate lines by default, but in Emacs I'm still using the cumbersome M-x toggle-truncate-lines in every buffer with long lines. Unfortunately, buffers with long lines are very common, so one has to do M-x…

Wouter Beek
- 289
- 3
- 14
6
votes
3 answers
How do I toggle soft-wrapped lines in org-mode?
I want to be able to toggle soft-wrapped lines in org-mode. My .emacs file has this code:
;;;;;;;;;;;;;;
;; Org Mode ;;
;;;;;;;;;;;;;;
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cc"…

R891
- 161
- 1
- 4
3
votes
1 answer
Can I hide the part of long lines that exceeds the visual line?
Is it possible to hide the part of long lines that exceeds the visual line rather than wrapping it into further visual lines?

Toothrot
- 3,204
- 1
- 12
- 30
2
votes
0 answers
adaptive-wrap-prefix-mode behavior is different/inconsistent inside a buffer
in org-mode I have adaptive-wrap-prefix-mode on.
The indentation though has a inconsistent behavior.
I have already tried to toggle visual-line-mode and word wrap but the sometimes correct and sometimes wrong indentation does not…

Tietan
- 95
- 5
2
votes
2 answers
Scroll only current line when truncating lines
When using (set-default 'truncate-lines t), and when moving to the end of the long line, is it possible to make Emacs scroll only that line, while the other lines stand still? nano does this.

forthrin
- 451
- 2
- 10
2
votes
2 answers
how to set truncate-lines in org-mode in spacemacs by default
Whenever I open up an .org file in spacemacs, the truncate-lines variable is set to t.
How can I make truncate-lines be set to nil by default in org-mode in the org-layer for spacemacs?
I would like lines to be wrapped in org-mode when they are…

illabout
- 285
- 2
- 14
1
vote
2 answers
Display lines aligned with right edge of buffer?
I'm running a test suite in a shell buffer that tends to produce really long lines with PASSED or FAILED at the end of them.
I'd like to be able to quickly see whether a given line passed or failed as the text scrolls past, but without throwing away…

Greg Nisbet
- 857
- 5
- 19
0
votes
1 answer
How can I activate truncate-lines in magit only
I want to long commit messages to be truncated rather than wrapped around in magit buffers only because I can simply open a commit to see the full message.
I tried
(add-hook 'magit-mode-hook (lambda () (setq truncate-lines t)))
but that didn't have…

Atemu
- 290
- 1
- 11
0
votes
2 answers
How to truncate the lines of a file?
I need to truncate the lines in a file to 24 characters, to feed to a small dot-matrix printer. How can I do this? I use doom emacs.

RamaPrakasha
- 113
- 4
0
votes
1 answer
How to completely remove truncation symbol (default '$') from truncated lines when no fringes?
In a GUI Emacs without fringes, I would like to get rid of the '$' at the end of truncated lines such that lines can use the fill width of the window. I've tried:
(set-display-table-slot standard-display-table 'truncation 0) : this replaced $ with…

Nicolas Rougier
- 487
- 3
- 15
0
votes
1 answer
How to set the default of `truncate-lines` for dired buffers to `truncate`?
How can I set the default of truncate-lines for dired buffers to truncate?
I.e. when I open a new dired buffer it should show the directory truncated and not wrapped into the next line.

halloleo
- 1,215
- 9
- 23
0
votes
2 answers
Remove dollar sign at beginning of line
In emacs when I scroll right and beginning of lines are truncated emacs inserts dollar sign same as it insert \ at the end of truncated line. I wish it would not insert these two signs. Can I disable this behavior?

Trismegistos
- 101
0
votes
1 answer
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 visualized.) I really need that feature, because…

tbrodbeck
- 177
- 1
- 10