This is an emacs theme spilt from nano-emacs.
Put nano-theme.el
in your custom-theme-load-path
, or use straight.el.
(straight-use-package '(nano-theme :type git :host github :repo "404cn/nano-theme.el"))
Then (load-theme 'nano t)
.
The default theme is light, add this to your config before load theme if you want to use dark theme.
(setq nano-theme-light/dark 'dark)
Add this to your init.el
to auto change light or dark theme after system appearance changed.
(when (boundp 'ns-system-appearance)
(add-to-list 'ns-system-appearance-change-functions
(lambda (l?d)
(setq nano-theme-light/dark l?d)
(mapc #'disable-theme custom-enabled-themes)
(load-theme 'nano t))))