rougier / nano-emacs

GNU Emacs / N Λ N O - Emacs made simple
GNU General Public License v3.0
2.52k stars 195 forks source link

*-theme: make themes switchable on the go #27

Closed utrack closed 3 years ago

utrack commented 3 years ago

This creates two new commands: nano-theme-set-dark and nano-theme-set-light. Use

  (nano-theme-set-dark)
  (nano-faces)
  (nano-theme)

to switch variables internally and apply the new theme on the go. It preserves the old behaviour of enabling a theme via (require nano-theme-dark), too. My elisp is not very good (couldn't make it work with deftheme's custom commands), but it's a start for #26 :)

mrzor commented 3 years ago

Looks good to me

rougier commented 3 years ago

Nice, thank you!