Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [wrapping]

The tag has no usage guidance.

0
votes
1answer
104 views

Automatically indent ONLY logical lines in Org-mode

I want this: ** This is a heading This is a logical line. But, because I have visual-line-mode on, lines will wrap at the edge, as is just and godly. But, such elegant formatting as you see here ...
0
votes
3answers
61 views

Use adaptive wrapping only in one specific major mode

I am using adaptive wrapping (see Correct indentation for wrapped lines) but it applies to all major modes. I would like to only use it for html. What I have tried so far is adding the following to my ...
1
vote
1answer
202 views

Make soft word wrap not cut words in the middle of the line?

Currently, in text files, Emacs is wrapping text (soft wrap), but if a word is at the end of the line, then it puts half of the word at the end of the line and the second half at the beginning of the ...
1
vote
1answer
221 views

How to disable line wrapping in LaTeX layer?

The LaTeX Layer by default wraps a line after column 85 by inserting a new line while typing and moving the current word to the new line. When the line is a comment, it even automatically inserts the ...
2
votes
1answer
46 views

Preventing syntax highlighting in the wrap-prefix

When Emacs wraps long lines, is there a way to prevent the wrap prefix from having syntax highlighting (font-lock) or any such special properties? Specifically, I have the following settings: ;; ...
0
votes
0answers
88 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
0answers
119 views

Output reflow in ansi-term [duplicate]

In gnome-terminal, the output of some commands is automatically "reflowed", in the sense that if the file tmp has content 0000000000 and the terminal has width 9, the output will be displayed as $ ...
1
vote
1answer
87 views

How to turn off line wrap when opening from terminal

I'm trying to open a file from terminal and ensure that line-wrap will be off. I'm trying the following code, but it won't work emacs --no-window-system --eval '(setq truncate-lines 1)' file I don't ...
0
votes
1answer
13 views

line wrapping is adding unwanted prefix text

Somehow, I must have clicked something that makes my line wrap (M-q) insert text. Here is an example: line I want to wrap: - also copied it into the loop that gets executed every time - now we ...
2
votes
2answers
439 views

Split line every n characters

I have a long binary string that I would like to split every 32 characters. Is there a command that can do this for me? I have tried word wrapping, but it splits per word. It has no effect since a ...
1
vote
1answer
193 views

No visual-line-mode in emacs! How to set line wrap?

I am using Emacs on mac osx 10.7*. I have the LongLines mode where long sentences are truncated on screen with $ symbol. M-x visual-line-mode does not exist in my Emacs. That is when I type M-x and ...
2
votes
2answers
865 views

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 ...
0
votes
1answer
211 views

In Spacemacs, how can I conditionally set line-wrapping on only for text files (i.e. in text mode)?

I want to have Spacemacs wrap around long lines, but only in text files (i.e. text mode), not in programming language files (i.e. program mode). How could one achieve that? I know that to turn on ...
3
votes
1answer
136 views

How do I teach Emacs to re-wrap /* */ comments?

Is there an existing function, and if not how would I write one, that turns this: /* asdasdasd asdasdasd asdasdasd */ /* asdasdasd asdasdasd asdasdasd asdasdasd asdasdasd */ /* asdasdasd asdasdasd ...
5
votes
1answer
1k views

How to open .org files with visual-line-mode automatically turned on?

How to open .org and .txt files with visual-line-mode automatically turned on? Also, is there a way to configure cursor-movement so that cursor moves as if the visual line where a logical line? line-...
5
votes
1answer
1k views

How to word wrap within code blocks

I'm trying to get the formatting right for an org-mode file being exported to pdf. I set 'org-startup-truncated' to nil and that has resolved my word wrapping issues for non code blocks. But I ...
3
votes
1answer
3k views

Wrap lines at 80 characters

I'm using emacs 25.1.1 with the prelude config. In Atom I used to have a setting that made my lines wrap at 80 characters (without cutting words) for better readability. I've searched on the web for ...
2
votes
0answers
2k views

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"...
0
votes
1answer
77 views

Show cut-off line in mini buffer?

When using ECB, the lines for function names are often long and get cut-off in the sidebar: Is there a way to show the full line that the cursor is at in the mini buffer when it is cut off due to its ...
0
votes
2answers
255 views

Configure smartparens wrapping to work in evil-visual-state?

I've been migrating from Vim to Emacs in evil mode, and I'd like to use smartparens. I know there's a port of surround.vim, but I've always found surround.vim awkward to use, so I'd like to explore an ...
6
votes
1answer
1k views

Soft vs Hard word wrap in Emacs

There are (in my mind) two types of word wrapping: Hard : Actually edit the file to have lines of a maximum length Soft : Just wrap in the editor, but the underlying file still has long lines. I can'...
1
vote
0answers
43 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
1answer
89 views

Extra indents in adaptive-wrap mode only for lines beginning with \item

When using the adaptive-wrap mode in the plain latex-mode (no AUCTeX), I want to give extra indents to only lines beginning with "\item". For example, I currently have: \begin{itemize} \...
1
vote
0answers
277 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'...
3
votes
1answer
303 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 ...
0
votes
1answer
657 views

Wrap/trunc text at 80 column width

Is it possible to wrap text automatically at 80 column length? I mean, writing code or text and then, when I reach 80 characters, put a breakline and continue on the next line (not wrapping the word ...
2
votes
1answer
351 views

How to prevent line wrapping in code, but allow it in help/info buffers?

I'm quite new to emacs (coming from vim), and I'm struggling to figure out how to configure sane line-wrapping/truncation behavior. For the most part, I'd like to prevent wrapping, so I put this in ...
13
votes
1answer
303 views

How do I enable line numbers (on the left) every time when line is the long logical line

I have linum-mode enabled as well as truncate-lines. Works fine as long as Emacs displays column 0: The line number is showed on left (OK) But as soon as the window is scrolled horizontally, the ...
1
vote
1answer
29 views

What module handles word+period within paragraph fill?

I'm experienced with elisp, and I'm using emacs 24.5. I want to modify how fill-paragraph works for a special application, and I'm trying to figure out which elisp code handles the case where a short ...
3
votes
2answers
3k views

Word wrap line option by default

Recently I discovered emacs as a text editor for my latex documents. So far, I am excited with how powerful the editor is. However, I have a problem with line wrapping. More precisely, in the option ...
1
vote
1answer
351 views

Auto-resize window widths to accomodate line length

What is an easy way to automatically resize a window (height and or width) according to the length / line length of the buffer? Possible behavior: A frame split horizontally with two windows with the ...
3
votes
2answers
246 views

How to wrap line at some characters other than space?

How to set Emacs to wrap long line (using Visual Line Mode) at -, _, (, ) too, instead of just at spaces. A sample line: This is a long line with long words like long-long-long-long-long-long-long-...
2
votes
0answers
342 views

Line wrapping with prefix

I'm using the answer from https://stackoverflow.com/questions/13559061/emacs-how-to-keep-the-indentation-level-of-a-very-long-wrapped-line but can't make it do exactly what I want If I have this long ...
3
votes
2answers
823 views

Word wrap that preserves indent from previous line

This may really be a basic emacs lisp question, but I'm just starting to learn some Clojure -- tiptoeing along the first steps of the newbie's path -- and don't know any elisp yet. How can one set ...