Questions tagged [line-break]

Breaking of lines on the display or in the file

Emacs has a number of different ways to break or display long lines. This tag should be used for question that relate line-breaking questions on the display or changing the line breaks in the file.

24 questions
108
votes
12 answers

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…
Wilfred Hughes
  • 6,890
  • 2
  • 29
  • 59
38
votes
3 answers

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. So here comes my question: How can I turn off…
Leu_Grady
  • 2,420
  • 1
  • 17
  • 27
30
votes
5 answers

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, the following is what my documents will look…
Malabarba
  • 22,878
  • 6
  • 78
  • 163
15
votes
2 answers

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 played with SRFI-41 (streams) and created a character…
user2005
14
votes
2 answers

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 have a minor mode that, when active, will visually…
Sean Allred
  • 6,861
  • 16
  • 85
12
votes
2 answers

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 width of the frame. next-line doesn’t seem to go to…
11
votes
4 answers

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 "\n
  • " and then I have a list. One of the few little things I don't seem to be able to in Emacs quickly, but…
  • mattl
    • 215
    • 2
    • 7
    11
    votes
    1 answer

    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 text outline: automatically insert 1 blank line…
    incandescentman
    • 4,111
    • 16
    • 53
    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
    9
    votes
    3 answers

    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 to the end of the line, otherwise, go the end of…
    CodyChan
    • 2,599
    • 1
    • 19
    • 33
    7
    votes
    2 answers

    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 lines, wrapped if needed, but not truncated. I have…
    Andrzej
    • 73
    • 3
    7
    votes
    2 answers

    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 that this mode has been removed since Emacs 24.4…
    xji
    • 2,545
    • 17
    • 36
    5
    votes
    1 answer

    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 the line starts, so that when I have a big Emacs…
    jbssm
    • 233
    • 2
    • 7
    4
    votes
    1 answer

    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 discovered global-visual-line-mode (I had been using…
    4
    votes
    1 answer

    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?
    Name
    • 7,689
    • 4
    • 38
    • 84
    1
    2