all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.