Questions tagged [fill-column]

27 questions
12
votes
1 answer

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 I change fill-paragraph (and friends?) to ignore…
Sean Allred
  • 6,861
  • 16
  • 85
5
votes
1 answer

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 following to my init file: (let…
d125q
  • 1,418
  • 5
  • 9
5
votes
3 answers

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 code doesn't change the color in existing buffers…
Joe
  • 1,312
  • 1
  • 8
  • 19
4
votes
1 answer

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
  • 2,265
  • 1
  • 17
  • 40
3
votes
2 answers

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 suppress this message? my setup: (add-hook…
alper
  • 1,238
  • 11
  • 30
3
votes
2 answers

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
  • 5,958
  • 3
  • 29
  • 77
3
votes
1 answer

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 seem to work, but not raw text outside code. If I…
Gauthier
  • 499
  • 2
  • 13
3
votes
1 answer

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 break and proceed further on the new line. Next…
ReneFroger
  • 3,855
  • 22
  • 63
2
votes
0 answers

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 () (display-fill-column-indicator-mode -1))))) doesn't…
shynur
  • 4,065
  • 1
  • 3
  • 23
2
votes
1 answer

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 like this should be returned, ;; This is a long string…
scribe
  • 930
  • 4
  • 15
2
votes
2 answers

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 configured Emacs never to split the window). At that…
Ista
  • 1,148
  • 8
  • 12
2
votes
2 answers

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-mode is not active in the COMMIT_EDITMSG buffer…
Mathieu Marques
  • 1,953
  • 1
  • 13
  • 30
2
votes
0 answers

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

OS windows7 64bit | GNU emacs 24.3.1
user11530
  • 21
  • 1
1
vote
1 answer

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 "auxiliary window") showing something else: documentation, Magit, make…
user570286
  • 121
  • 4
1
vote
0 answers

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
  • 1,839
  • 13
  • 26
1
2