unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* fill-column setq-default and add-hook
@ 2024-11-30 17:38 Heime via Users list for the GNU Emacs text editor
  2024-12-04 12:00 ` Joel Reicher
  0 siblings, 1 reply; 4+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2024-11-30 17:38 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor



I want to understand the setting of fill-column.  It is a buffer local variable.  

But then there the following possibilities 

   (setq-default fill-column 72)

and       

   (add-hook 'prog-mode-hook  (lambda () (setq fill-column 72)))

The first sets fill-column globally.  What does that mean?  I interpret
that the value is set globally but only to those buffers for which there
is no local binding.  This setting the value (setq-default fill-column 72)
does not always work for the current buffer.  How can one solve this problem?

What does the mode hook do exactly?
  





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-12-05  1:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-30 17:38 fill-column setq-default and add-hook Heime via Users list for the GNU Emacs text editor
2024-12-04 12:00 ` Joel Reicher
2024-12-04 12:39   ` Heime via Users list for the GNU Emacs text editor
2024-12-05  1:46     ` Joel Reicher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).