Skip to main content

Questions tagged [fill-column]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
39 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) ...
Metric Scantlings's user avatar
0 votes
1 answer
40 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 ...
Mark's user avatar
  • 175
1 vote
2 answers
73 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 ...
Dilna's user avatar
  • 1
0 votes
0 answers
25 views

How to set a buffer local variable (e.g. fill-column) for one specific .org file? [duplicate]

I use fill-column 80 for the majority of my files. Howover, I have a .org with a table that is slightly wider than 80 columns. I'd like to automatically set (setq fill-column 100) for that file only, ...
Lai Yu-Hsuan's user avatar
0 votes
0 answers
124 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-...
Lai Yu-Hsuan's user avatar
0 votes
0 answers
25 views

Need an emacs function that reformats a comment, left and right padded

Context When writing a long text file that has some structure (program, TeX/LaTeX document, whatever programming or markup language), it can be handy to make structure visually salient into visible ...
Stéphane Gourichon's user avatar
2 votes
0 answers
65 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 () (...
shynur's user avatar
  • 5,438
0 votes
1 answer
51 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 ...
Dilna's user avatar
  • 1
1 vote
1 answer
117 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 "...
user570286's user avatar
2 votes
1 answer
304 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 ...
scribe's user avatar
  • 1,035
0 votes
1 answer
58 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) ...
vfclists's user avatar
  • 1,423
3 votes
2 answers
157 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 ...
alper's user avatar
  • 1,400
3 votes
2 answers
329 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?
Matthew Piziak's user avatar
1 vote
0 answers
54 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....
xuhdev's user avatar
  • 1,921
0 votes
1 answer
190 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 ...
Daniel Doherty's user avatar
3 votes
1 answer
395 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 ...
Gauthier's user avatar
  • 509
0 votes
0 answers
57 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. ...
ideasman42's user avatar
  • 8,846
1 vote
0 answers
565 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 ...
Croad Langshan's user avatar
5 votes
1 answer
888 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 ...
d125q's user avatar
  • 1,453
0 votes
0 answers
85 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 ...
cjorssen's user avatar
  • 197
0 votes
3 answers
47 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-...
Hellseher's user avatar
  • 123
2 votes
2 answers
240 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 ...
Ista's user avatar
  • 1,188
4 votes
1 answer
974 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.
Brian Fitzpatrick's user avatar
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-...
Mathieu Marques's user avatar
1 vote
1 answer
586 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 ...
Tim X's user avatar
  • 567
1 vote
1 answer
749 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 ...
ideasman42's user avatar
  • 8,846
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 ...
Joe's user avatar
  • 1,332
1 vote
1 answer
750 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 ...
Eirik S.'s user avatar
2 votes
0 answers
342 views

fill-column-indicator mode doesn't show a straight vertical line

OS windows7 64bit | GNU emacs 24.3.1
user11530's user avatar
3 votes
1 answer
153 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 ...
ReneFroger's user avatar
  • 3,880
12 votes
1 answer
186 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 ...
Sean Allred's user avatar
  • 6,951