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

From: Eli Zaretskii <[email-masked]>
Date: Sat, 03 Jul 2021 09:29:14 +0300

> From: 積丹尼 Dan Jacobson <[email-masked]>
> Cc: [email-masked]
> Date: Sat, 03 Jul 2021 14:08:28 +0800
> 
> >>>>> "EZ" == Eli Zaretskii <[email-masked]> 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.