Questions tagged [fill-column]
The fill-column tag has no usage guidance.
25
questions
0
votes
0
answers
15
views
having fill-region, or fill-column, work with text-scale-mode
i'd like to be able to programmatically (re-)fill text in a buffer after scaling text with C-x +.
i understand i could add a hook to text-scale-mode-hook, but if i call (frame-width) or (window-width) ...
0
votes
1
answer
33
views
ruler-mode not following fill-column value
With ruler-mode enabled and using (setq fill-column 72), I still see the fill-column icon in ruler-mode at column 70.
I want to customise fill-column globally or according to major mode. Can one do ...
1
vote
1
answer
71
views
How can I keep windows from being shrunk past their fill-columns?
Typically I have two windows, left and right, with the left window (call it the "editing window") showing a buffer in a prog-mode or text-mode and the right window (call it the "...
2
votes
1
answer
184
views
How to fill a string programmatically like fill-region in elisp?
Here is what I want:
(fill-string ";; This is a long string to be inserted into a buffer somewhere. Okay that's it.")
This should insert line breaks according to the fill-column. Something ...
0
votes
1
answer
44
views
What is the mode for org's LOGBOOK editing window and how can one be created if it doesn't already exist?
I want to wrap the LOGBOOK editing window at column width I'm yet to decide.
From another answer here I see need to set something along the lines of (add-hook 'some-logbook-mode-hook #'auto-fill-mode) ...
3
votes
2
answers
135
views
How do I suppress messages in the echo area (e.g. `Fill column set to 80 (was 80)`)?
When I open a Python file I keep seeing Fill column set to 80 (was 80) message in the echo area. I know I have set it this limit , but I don't want to be keep reminded about it.
Is it possible to ...
3
votes
2
answers
223
views
Maintaining consistent visual fill column under `org-indent-mode`
How can one enable org-indent-mode (or otherwise indent content to Org headings) while still maintaining a consistent visual fill column?
1
vote
0
answers
43
views
Automatically set `fill-column' based on flake8 setup
How can I automatically set fill-column based on flake8 configuration for python-mode buffers, specifically the max-line-length value in .flake8? Solutions that employs existing extensions are welcome....
0
votes
1
answer
135
views
Different fill-column for comments than code in programming modes
I don't mind if the occasional code line runs long. For example, the Shopify ruby standard allows lines of 120. But I want comments to be restricted to the first 78 lines or so. Is there any way in ...
3
votes
1
answer
268
views
fill-paragraph does not honor fill-column
C-h v fill-column gives me 80.
Pasting the lorem ipsum text in *scratch* (lines longer than 80) then going M-x fill-paragraph fills around column 66.
The same in c-mode. In this mode, comment wraps ...
0
votes
0
answers
56
views
How to display a (basic) column indicator? [duplicate]
Since fill-column-indicator is no longer actively maintained, how can I visualize the fill-column?
The fill-column-indicator package was quite heavy and had compatibility issues with other packages.
...
0
votes
0
answers
495
views
Display two vertical rules, at columns 79 and 87
Python code now often is limited either to 80 columns, or to 88 columns.
fci-mode allows drawing a vertical rule at a single column, but not two.
I'd like to do something very similar in appearance ...
5
votes
1
answer
782
views
Per-mode value for `fill-column'
Emacs and I agree on many things. That's good. However, there is one thing we disagree on – the default value for fill-column for different major modes. In order to alleviate this, I added the ...
0
votes
0
answers
73
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 ...
0
votes
3
answers
46
views
Add characters on each side of a block
I want to write a function which equally add "-" character on each sides of bold text. The future line should be no longer then fill-column
Input:
- <1900-01-01 Mon> *XX century* <1999-12-...
2
votes
2
answers
183
views
Format help buffers to specific width
I'm helping a visually impaired user make viewing documentation in Emacs easier. He sets his font size such that he has about 40 columns of text in a full-screen frame with no splits (and he has ...
4
votes
1
answer
859
views
Why is the default value of fill-column 70?
Is there a reason that the default value of fill-column is 70?
In my experience, everyone who cares about the value of fill-column prefers a default value of 80.
2
votes
2
answers
1k
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
1
answer
564
views
org-mode and file column indicator (fci-mode)
When using the fill-column-indicator package with org mode, I get wrong argument errors when exiting the source block editing window, issues with utf-8 character artefacts in source blocks exported to ...
1
vote
1
answer
708
views
How to disable fill-column-indicator (fci) when it's outside the window?
*Edit* fci is no longer supported, emacs-27 supports this feature natively.
The are various known bugs with the fill-column indicator, there is one well known bug that occurs when the window is too ...
5
votes
3
answers
1k
views
Change fill-column-indicator rule color immediately
How can I change the color of the fill-column-indicator and have the changes visible immediately?
(defun my:change-fci-color (color)
(setq fci-rule-color color)
(fci-redraw-frame))
The previous ...
1
vote
1
answer
693
views
Unpredictable fill-column behavior
I'm using Emacs (24.4+1-5) and org mode for writing prose, which means that I need some mechanism for line wrapping that just works, and preferably the same way each time. At the moment I'm using ...
2
votes
0
answers
315
views
fill-column-indicator mode doesn't show a straight vertical line
OS windows7 64bit | GNU emacs 24.3.1
3
votes
1
answer
149
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 ...
12
votes
1
answer
183
views
Can I allow punctuation to run past fill-column?
In typography, there's a practice called 'protrusion' (or hanging punctuation) that allows certain symbols to hang off the end of the margin:
I'd like to do the same thing for my text documents.
Can ...