bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#49330: Customization buffer should also offer printing code snippets


From: Eli Zaretskii
Subject: bug#49330: Customization buffer should also offer printing code snippets
Date: Sat, 03 Jul 2021 09:29:14 +0300

> From: 積丹尼 Dan Jacobson <jidanni@jidanni.org>
> Cc: 49330@debbugs.gnu.org
> Date: Sat, 03 Jul 2021 14:08:28 +0800
> 
> >>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
> 
> EZ> What is that "code snippet" that you'd like to see?  If you want to
> EZ> see the effect of customizing the face, then the Customize Face buffer
> EZ> includes a "[sample]" part, which dynamically shows the results of
> EZ> your customizations.
> 
> Yes, but that "sample" is not code.
> 
> Here is a standalone code snippet:
> (custom-set-faces
>  '(hl-line ((t (:underline t)))))

You mean, what Emacs will write into the init file to save your
customizations?  Why is that needed?  If you want to customize your
faces in Lisp, the recommended way is to use set-face-attribute
instead, not custom-set-faces.





reply via email to

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