all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* pushing to prettify-symbols-alist
@ 2021-02-13 17:59 michael-franzese
  2021-02-13 20:07 ` Philip Kaludercic
  0 siblings, 1 reply; 2+ messages in thread
From: michael-franzese @ 2021-02-13 17:59 UTC (permalink / raw)
  To: Help Gnu Emacs


Is there a better way to write the following when you have many
things to push to prettify-symbols-alist?

(push '("\\alpha" . ?α) prettify-symbols-alist)



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

* Re: pushing to prettify-symbols-alist
  2021-02-13 17:59 pushing to prettify-symbols-alist michael-franzese
@ 2021-02-13 20:07 ` Philip Kaludercic
  0 siblings, 0 replies; 2+ messages in thread
From: Philip Kaludercic @ 2021-02-13 20:07 UTC (permalink / raw)
  To: michael-franzese; +Cc: Help Gnu Emacs

[-- Attachment #1: Type: text/plain, Size: 668 bytes --]

michael-franzese@gmx.com writes:

> Is there a better way to write the following when you have many
> things to push to prettify-symbols-alist?
>
> (push
'("\\alpha" . ?α) prettify-symbols-alist)

I think it's better to use add-to-list, if you want to add this in your
own configuration. But if you have a lot of elements, you might also
consider something like

        (setq prettify-symbols-alist
              (append '(("\\alpha" . ?α)
                        ("\\beta" . ?β)
                        ("\\gamma" . ?γ)
                        ;; ...
                        )
                      prettify-symbols-alist))

-- 
	Philip K.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

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

end of thread, other threads:[~2021-02-13 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-13 17:59 pushing to prettify-symbols-alist michael-franzese
2021-02-13 20:07 ` Philip Kaludercic

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.