[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing value for fill-column

From: wilnerthomas
Subject: Re: Changing value for fill-column
Date: Sun, 28 Aug 2022 16:20:14 +0200 (CEST)

Aug 28, 2022, 14:11 by

>> Date: Sun, 28 Aug 2022 14:17:08 +0200 (CEST)
>> From: wilnerthomas--- via Users list for the GNU Emacs text editor 
>> <>
>> How can I change fill-column.  Have changed it in my init file using (setq 
>> fill-column 65)
>> but it not taking effect in major modes.
> The doc string says:
>  Automatically becomes buffer-local when set.
> So you either need to set it in a mode-hook of each mode where you
> want to change the default value, or you should use setq-default to
> change the default value in all buffers.
I know how to add hook to major mode with a function but not using a variable.

(add-hook 'prog-mode-hook #'display-fill-column-indicator-mode)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]