Questions tagged [fill-column]
The fill-column tag has no summary.
31 questions
1
vote
2
answers
42
views
Changing the background but not the foreground color of a long line
I want to have an indication of which lines are longer than a given number of columns. I have been using whitespace with the following instructions:
(set-face-background 'whitespace-line "grey30&...
0
votes
1
answer
45
views
How to remove the 'line breakable' property for all the thousands of Chinese characters?
For a given Chinese character,
C-u C-x = (what-cursor-position DETAIL) says
category: .:Base, C:2-byte han, L:Strong L2R, c:Chinese, j:Japanese, |:line breakable
How can I remove the 'line breakable'...
1
vote
3
answers
427
views
How to have a solid fill column indicator when line spacing is greater than zero?
Switching from fill-column-indicator (sadly too many issues now, but it was a good run) to native display-fill-column-indicator has left me with some unsightly gaps:
(setq-default line-spacing 0.25)
...
0
votes
1
answer
288
views
Make Emacs fill in text up to 80 columns
I'm using Emacs-28.2 (9.0) on MacOS Sonoma 14.3 and Emacs 26.1-10 on RedHat-8.8. In both cases I have the same config with the following setting:
(setq fill-column 79)
So I was expecting that when I ...
2
votes
2
answers
275
views
Using different line length for comment blocks
I am setting the fill column (80) to specify the maximum width of a line before it should be automatically wrapped or broken into multiple lines.
Although this setting is useful for ensuring ...
0
votes
0
answers
303
views
Emacs ignores display-fill-column-indicator-character settings
I have these settings in my init.el:
(global-display-fill-column-indicator-mode 1)
(setq-default fill-column 120)
(setq-default display-fill-column-indicator t)
(setq-default display-fill-column-...
2
votes
0
answers
121
views
Disable fill-column-indicator Only in Minibuffer
My code
(custom-set-variables
'(global-display-fill-column-indicator-mode t)
'(minibuffer-mode-hook `(,@minibuffer-mode-hook
,(lambda ()
(...
0
votes
1
answer
81
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
176
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
456
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
97
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
190
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
3
answers
494
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
72
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
2
answers
277
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
518
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
58
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.
...
1
vote
0
answers
607
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 ...
6
votes
1
answer
1k
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
113
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
67
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
313
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
1k
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
2k
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-...
2
votes
1
answer
623
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
808
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
833
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
357
views
fill-column-indicator mode doesn't show a straight vertical line
OS windows7 64bit | GNU emacs 24.3.1
3
votes
1
answer
178
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
209
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 ...