severity 28713 minor tags 28713 + patch quit Lele Gaifax writes: > have to do something like the following in one of my python-mode-hooks: > > ;; Prettify only lambda keyword > (setq prettify-symbols-alist '(("lambda" . ?λ))) > > ;; Force a refresh > (prettify-symbols-mode -1) > (prettify-symbols-mode)) Actually you could probably get away with (with-eval-after-load 'python (setq python--prettify-symbols-alist '(("lambda" . ?λ)))) since defconst doesn't actually make anything const. > This is of course a minor hassle, but I wonder if the major mode could/should > use a normal variable (if not a defcustom) instead. prettify-symbols-alist is not a defcustom, due to some uncertainty over how to produce a reasonable interface for customizing it, if I recall correctly. So I think the python-mode version should not be a defcustom either, but I see no reason against making it a normal variable: