Questions tagged [line-break]

Breaking of lines on the display or in the file

Filter by
Sorted by
Tagged with
88
votes
10answers
14k views

How do I prevent extremely long lines making Emacs slow?

I see hugely varied performance depending on how many newlines there are in the file I'm visiting. Here's an example. I have two JSON files: $ wget https://github.com/Wilfred/ReVo-utilities/blob/...
32
votes
3answers
4k views

Make visual-line-mode more compatible with org-mode

visual-line-mode is very useful to wrap lines with the window size changing without inserting any newlines. But in org-mode, it also wraps the headline and source blocks which is a little bit annoying....
30
votes
5answers
3k views

Editing files with one-sentence-per-line

A bit of background. I’m trying to version-control my latex documents, and the effectiveness of this initiative would be greatly improved if I adopt a one-sentence-per-line approach. For instance, ...
15
votes
2answers
2k views

How to prevent slow-down when an inferior processes generates long lines?

I use Emacs with Geiser to hack on some Scheme code. As I'm playing around in the REPL I sometimes evaluate expressions that result in a lot of output, often all on one line. For example, I just ...
14
votes
2answers
2k views

How can I split paragraph into one-line-per-sentence but still keep it wrapped visually?

This is similar to Editing files with one-sentence-per-line (in function as well as motive), but I wish to have a full, flowing paragraph rather than visual breaks at every sentence. I would like to ...
12
votes
2answers
560 views

How to handle next-line in keyboard macro?

I created a keyboard macro to join lines in a buffer using: F3 C-n M-x join-line RET F4. It works fine, except when lines get too long and start to wrap – which makes this macro dependent on the ...
11
votes
4answers
123 views

How to convert a series of lines into a working HTML list?

Right now, this is a task I find a lot easier in something like gedit, because I can just replace "\n" (the line break) with "</li>\n<li>" and then I have a list. One of the few little ...
9
votes
3answers
744 views

Keep moving to the end of lines

The default of key binding C-a/C-e is only for one thing, move to the beginning/end of the line, is there any package that can make Emacs act like this: If I'm not at the end of a line, C-e will go ...
9
votes
1answer
2k views

make org-blank-before-new-entry distinguish between a TODO list and a text outline?

Like many of us, I use org-mode for two different things: As a TODO list manager As a text outliner I'd like my blank lines to work differently based on context. TODO list: no blank lines ...
8
votes
1answer
635 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. ...
7
votes
2answers
2k views

If longlines-mode is removed in new emacs, how can I soft-wrap the line around the column instead of window edge?

I'm now trying to switch from Vim to Spacemacs. It seems that Longlines Mode is the way to go in Emacs to soft-wrap the line around the column http://emacswiki.org/emacs/LineWrap. However it seems ...
5
votes
1answer
521 views

Truncate lines at a specific visual column instead of truncating in the last visual column

How can I visually truncate the lines of a buffer at a specific column instead at the last column of the buffer? Is this even possible in Emacs? If, so, is it possible to also choose at which column ...
4
votes
1answer
242 views

Is there a variable which determines if the cursor is at the end or the beginning of the line

Is there a built-in boolean variable to determine if the cursor is at the end or the beginning of the line?
4
votes
2answers
853 views

How to prevent eww from truncating lines?

On a Mac, I would like to use "text to speech" to read web content. I am using the eww browser. "Text to speech" treats line breaks as the end of the sentence so I would like eww to display long ...
4
votes
1answer
647 views

Loading adaptive wrap as default

I've been using emacs for a long time but still have little understanding of elisp; I basically copy code I find on websites into my .emacs until it seems to do what I want. I only recently ...
3
votes
1answer
285 views

Make `return` key more powerful

Normally return key is just newline, I believe a lot of people bind it to newline-and-indent, but return is relatively common used key, the C-u RET and C-- RET basically do nothing but same as return, ...
3
votes
2answers
538 views

Pasting Text from Clipboard - why ^M instead of linebreaks?

I'm using some VBA scripts which copy Text in MS Outlook from an e-mail message and send it to the clipboard. If I then paste the clipboard content with Ctrl-Y in Emacs 24.5.1 in Windows 7, the ...
3
votes
1answer
271 views

`find-file-hook` problem for large buffer that is just one long line

I got a file(for instance, ~/.mozilla/firefox/xxx.default/sessionstore-backups/recovery.bak) that its content is one whole line and size of over 1MB, if I open it in Emacs, Emacs will become very ...
2
votes
1answer
626 views

How to avoid term turn line wrap into line break for long output

When the output in term is longer than the frame it will wrap the line. But when I copy and paste the output, I found the output will break under the wrap point, because it treat it as line break. How ...
1
vote
2answers
221 views

Function for creating a new line but leaving point in same column

Is there such a function? It should correspond to pressing return and space enough times to get back to the old column. I believe this is known as a linefeed?
1
vote
0answers
70 views

Increase spacing between physical lines only

How can I add spacing where there are linebreaks in the file, but not where a line is word-wrapped? This would be very useful for reading log files with long lines. Here's a mockup of what I'm after: ...
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
148 views

How to remove line breaks but retain paragraphs [duplicate]

I have fill-column set to 75 by default and use fill-paragraph to insert line breaks in the paragraphs of text that I write. On certain occasions though, I need to remove the line breaks but want to ...
0
votes
0answers
24 views

How to prefer to break long file names (in neotree directory listings) over fitting the whole word on the next line?

How can you make long words (here: file names) break e.g. at hyphens? I'm looking for a way to make my neotree directory listing not break after the icon. I'm fine with both not breaking but ...
0
votes
0answers
53 views

Hard return to soft return of a .tex file

I have tons of LaTeX files with hard returns at column 80 like the test file below: \documentclass{article} \begin{document} Foo bar foobar Foo bar foobar Foo bar foobar Foo bar foobar Foo bar ...