emacs-diffs
[Top][All Lists]
Advanced

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

master 5bd23b0 4/4: Mention `set-variable' in the Init Syntax Emacs manu


From: Lars Ingebrigtsen
Subject: master 5bd23b0 4/4: Mention `set-variable' in the Init Syntax Emacs manual node
Date: Sun, 29 Aug 2021 15:32:07 -0400 (EDT)

branch: master
commit 5bd23b0cd36bc1ea47313db15765fe0a1e6ea717
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Mention `set-variable' in the Init Syntax Emacs manual node
    
    * doc/emacs/custom.texi (Init Syntax): Mention set-variable
    (bug#50248).
    (Init Examples): Add an example.
---
 doc/emacs/custom.texi | 29 +++++++++++++++++++++--------
 1 file changed, 21 insertions(+), 8 deletions(-)

diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi
index cdbb614..2ff6b8c 100644
--- a/doc/emacs/custom.texi
+++ b/doc/emacs/custom.texi
@@ -2366,14 +2366,19 @@ function @code{setq} to set the variable 
@code{fill-column}
 (@pxref{Filling}) to 60.
 
   You can set any Lisp variable with @code{setq}, but with certain
-variables @code{setq} won't do what you probably want in the
-init file.  Some variables automatically become buffer-local
-when set with @code{setq}; what you want in the init file is to set
-the default value, using @code{setq-default}.  Some customizable minor
-mode variables do special things to enable the mode when you set them
-with Customize, but ordinary @code{setq} won't do that; to enable the
-mode in your init file, call the minor mode command.  The
-following section has examples of both of these methods.
+variables @code{setq} won't do what you probably want in the init
+file.  Some variables automatically become buffer-local when set with
+@code{setq}; what you want in the init file is to set the default
+value, using @code{setq-default}.  (The following section has examples
+of both of these methods.)
+
+Some customizable minor mode variables do special things to enable the
+mode when you set them with Customize, but ordinary @code{setq} won't
+do that; to enable the mode in your init file, call the minor mode
+command.  Finally, a few customizable user options are initialized in
+complex ways, and these have to be set either via the customize
+interface (@pxref{Customization}) or by using @code{set-variable}
+(@pxref{Examining}).
 
   The second argument to @code{setq} is an expression for the new
 value of the variable.  This can be a constant, a variable, or a
@@ -2522,6 +2527,14 @@ Turn on Auto Fill mode automatically in Text mode and 
related modes
 @end example
 
 @item
+Change the coding system used when using the clipboard
+(@pxref{Communication Coding}).
+
+@example
+(set-variable 'selection-coding-system 'utf-8)
+@end example
+
+@item
 Load the installed Lisp library named @file{foo} (actually a file
 @file{foo.elc} or @file{foo.el} in a standard Emacs directory).
 



reply via email to

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