why cant emacs 24 find a custom theme I added?

前端 未结 4 1085
难免孤独
难免孤独 2021-02-04 12:10

My entire emacs setup is here

I loaded my init-theme.el file here

And supposedly that should make the darkclean theme available.

But when I type M-

4条回答
  •  不要未来只要你来
    2021-02-04 12:38

    I think you need to set custom-theme-directory and then include the sha256 hash in custom-safe-themes to remove the confirmation prompt everytime you load it. To insert the sha256 hash, you can use the customize interface, as then it is calculated for you. To enable the theme, you will have to include it in custom-enabled-themes.

    Below is an example from my setup:

    (custom-set-variables
     ;; ...
     '(custom-enabled-themes (quote (dark-emacs)))
     '(custom-safe-themes (quote ("" default)))
     '(custom-theme-directory "~/.emacs.d/themes/")
    )
    

    To see my actual setup, take a look at the following links:

    • my custom file
    • my dark theme

提交回复
热议问题