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 [auto-fill-mode]

The tag has no usage guidance.

1
vote
0answers
45 views

Why does Emacs fill-paragraph corrupt this paragraph layout?

To reproduce what appears to be a bug that I'm encountering, create a new buffer with Emacs 26.1 (Fundamental mode is fine), and paste the following text in: Without message passing to worry about, ...
0
votes
1answer
26 views

Auto line break in a specified window

I copy content to *.org file, but it does not break lines (fill) automatically. It's a very long sentence. How could I enable it to fill automatically?
0
votes
1answer
95 views

Problems trying to turn on auto-fill in a directory local way

I am inexperienced in Emacs and very new to directory-local variables, so please forgive any obvious things I may be missing. I am trying to have auto-fill mode activated for all the files in a ...
2
votes
1answer
736 views

org-mode, auto new line at 80th column? [duplicate]

When I'm writing in org-mode I want it to automatically handle the creation of new lines similar to MS Word. Can anyone recommend an .emacs config that will only apply to org-mode?
2
votes
2answers
528 views

Turn on auto-fill-mode when editing a commit message with Magit?

I have tried: (add-hook 'git-commit-mode-hook '(lambda () (setq fill-column 72) (turn-on-auto-fill))) In both cases, auto-fill-...
1
vote
1answer
111 views

I keep accidentally turning on fill mode; how am I doing this, and how do I undo it?

I must be hitting some combination of shortcut keys, because my Emacs keeps on switching all of its buffers to the minor mode 'fill'. It's trivial to turn the mode off on each buffer individually, ...
2
votes
1answer
97 views

Prevent hooks from parent mode in derived mode

I have: (add-hook 'text-mode-hook 'turn-on-auto-fill) but in lisp/nxml/nxml-mode.el: (define-derived-mode nxml-mode text-mode "nXML" All XML files is opened with auto-fill-mode. That is ...
3
votes
1answer
60 views

Prevent fill-paragraph from wrapping past horizontal rules

Say I have the following document: Sir Bedevere ------------ Well, now, uh, Lancelot, Galahad, and I, wait until nightfall, and then leap out of the rabbit, taking the French by surprise - not only ...
0
votes
1answer
85 views

Strategy for proper version control of “auto-filled” text files

I like auto-fill-mode a lot because it makes text fit into my screen even when I have two buffers side-by-side. My problem is that a small wording change may trigger auto-fill to reformat a whole ...
1
vote
0answers
50 views

auto-fill-mode fails in comment with empty second line

Consider the following comments: ;; This is the first line of a comment. ;; ;; This is the second line, which begins a paragraph. If I have ;;auto-fill-mode enabled, I lose the leading space! ;; ...
2
votes
1answer
465 views

Separate fill-column value for org-mode

I've set fill-column value to be 80. But, especially for org-mode I want a bit higher fill-column value. Is it possible for org-mode to have a separate fill-column value of say 100?
5
votes
2answers
422 views

How to have fill-paragraph/fill-region break the line after a period?

I'm having trouble getting Emacs to properly fill a section of text when the last word of a suitable line ends with a period. Emacs seems to think that words separated by a period (and space) are ...
3
votes
0answers
48 views

Enabling auto-fill-mode only when document already filled

I have turn-on-auto-fill as part of my text-mode-hook. This works great for new documents, but when I open a buffer that is not filled with hard breaks I rarely want to start doing so to a single ...
3
votes
1answer
101 views

Emacs auto fill on period

How can I tweak Emacs auto-fill to fill when a period is inserted? For example, with a (setq fill-column 10) the following will auto-fill when I press the space after "fill". ;; good fill ;; good ;;...
1
vote
1answer
106 views

Allow auto-fill to break words

By default, auto-fill will only break a line at a whitespace character. Usually this is what you want. However, I'm writing a major mode for editing data files (DNA sequences) that contain long lines ...
1
vote
0answers
26 views

Autofill insert a special string before returning

I use autofill in org mode to return automatically after 80 characters, the thing is that when exporting to html newlines aren't automatically added. So I would like to know if it is possible to tell ...
2
votes
1answer
437 views

80 columns with autofill-mode doesn't return automatically

I have set autofill to 80 with C-x f and autofill-mode is enabled (I see Fill in the modeline), but it doesn't return automatically after 80 characters. How can I make it works ?
4
votes
1answer
119 views

Fill-column conflicts with YASnippet [Examples in gif]

I use fill-column in my dot-Emacs. And I have the following setting: (turn-on-auto-fill) (set-fill-column 60) The result looks like this: Every time when the input exceeds columnnumber 60, it will ...
4
votes
1answer
608 views

Fill is not working in org-mode?

While in org-mode I've tried calling fill-paragraph directly. I've tried using auto-fill-mode and refill-mode. I've tried org-fill-paragraph. The fill-column is set appropriately. None of them ...
1
vote
0answers
42 views

auto-fill and auto-hscroll interferes, causing unnecessary horizontal scrolling

When both auto-fill-mode and auto-hscroll-mode are enabled, I often end up with a window that is horizontally scrolled, even though the entire content of the window should fit into an unscrolled ...
6
votes
1answer
426 views

How realign existing contents of buffer on column-width?

I added the following settings to my dot-Emacs: (add-hook 'org-mode-hook 'turn-on-auto-fill) (add-hook 'org-mode-hook (lambda() (set-fill-column 80))) When I'm typing sentences in an ...
3
votes
1answer
114 views

Simple fill-sentence function

I am new to emacs and would like to make a simple function to automate a series of commands I use repeatedly. In auto-fill-mode after I edit the text I often need to re-wrap the lines. (I am writing ...
0
votes
0answers
26 views

Emacs adding comment char when using auto-fill-wrap

I'm pretty new to emacs, so this might be a stupid question but I have auto word wrap enabled like so: (setq-default auto-fill-function 'do-auto-fill) But when I try to use it in C files, It ...
1
vote
1answer
412 views

How to delete word in next line with evil-mode?

I use evil-mode (from spacemacs) and I get a strange behaviour which I'm not sure if it is right or a bug. If I delete words (with dw, i think it calls evil-delete), it works until I arrive at the ...