Questions tagged [auto-fill-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
1answer
447 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 ...
5
votes
2answers
515 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 ...
4
votes
1answer
670 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 ...
3
votes
1answer
115 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 ;;...
3
votes
1answer
126 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 ...
3
votes
1answer
122 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 ...
3
votes
0answers
60 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 ...
2
votes
1answer
65 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 ...
2
votes
1answer
1k 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
1answer
114 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 ...
2
votes
1answer
530 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?
2
votes
1answer
479 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 ?
2
votes
2answers
628 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
433 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 ...
1
vote
2answers
112 views

Org-mode Auto-Fill-Mode

Whenever I open an org file, I have to activate auto-fill-mode and go through every signle line that I need to read and press RET to get a filled paragraph. Is there any way to globally set auto-fill-...
1
vote
1answer
122 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
1answer
120 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, ...
1
vote
1answer
35 views

ES6 imports auto suggestion

I'm new to emacs and trying to setup emacs for ES6/React developement. I would like to have auto suggestions for es6 imports like lodash similar to vscode (as shown in screenshot). Is there a way to ...
1
vote
0answers
52 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, ...
1
vote
0answers
59 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! ;; ...
1
vote
0answers
27 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 ...
1
vote
0answers
43 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 ...
0
votes
1answer
120 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 ...
0
votes
1answer
90 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 ...
0
votes
1answer
32 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
43 views

Python Documentation String Indent In Auto-Fill Mode (Emacs 26.2)

I've noticed a peculiar behavior when using auto-fill-mode editing Python code. For example if I start typing the following (fill-column is set to 79): def some_function(keyword_argument0, ...
0
votes
0answers
27 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 ...