#971444 emacs: cannot set a custom theme using only the menu bar

#971444#5
Date:
2020-09-30 17:51:48 UTC
From:
To:
Dear Rob,

It is not possible to set a custom theme using only the menu bar and
without setting it by hand in init file. The theme will be applied but
after restarting Emacs, it won't be loaded automatically.

This bug only applies to the themes which are not shipped with Emacs but
can be installed from Debian repos.

These are steps to reproduce:

1. Install Emacs from Debian repos
($ sudo apt install emacs)
2. Install an Emacs theme from Debian repos. For instance Monokai
($ sudo apt install elpa-monokai-theme)
3. Go to Options > Customize Emacs > Custom Themes
4. Choose monokai
5. Click on Save Theme Settings
6. Restart Emacs

Workaround:

Adding package initialize and loading the theme manually solves the bug.

(package-initialize)
(load-theme 'monokai t)


Cheers,
Salman

#971444#10
Date:
2021-02-23 18:16:50 UTC
From:
To:
Using the recipe from the OP, it works fine for me in Emacs 27.1.
#971444#15
Date:
2021-02-23 18:16:50 UTC
From:
To:
Using the recipe from the OP, it works fine for me in Emacs 27.1.