rougier / nano-emacs

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

Changing the default to Nano Dark? #138

Closed haziz closed 1 year ago

haziz commented 1 year ago

Maybe I missed it, but I am unable to figure out how emacs should start and default to the dark theme. By copying the nano-emacs repository into my .emacs.d folder and with cutting and pasting of the contents of nano.el into my init.el file, I have managed to get Emacs to start using the light theme. I even figured out how to change the default font size on my HiDPI scree. I would prefer if it would default to the dark theme, but even after an hour of perusing the emacs lisp files and some tinkering I am unable to convince it to start in dark mode.

While I am somewhat comfortable with Scheme and Common Lisp, my grasp of Emacs Lisp is tenuous at best, please be very explicit and clear about what I need to do.

Thanks.

rougier commented 1 year ago

Did you try to modify (customize) nano-theme-var?

haziz commented 1 year ago

Which Emacs Lisp file includes the nano-theme-var variable?

Can you be more explicit about which variable to change/SETQ and where?

Thanks.

rougier commented 1 year ago

nano-theme.el but you can also customize the variable and save it in along your other customization.

Midnight1938 commented 1 year ago

Did you try to modify (customize) nano-theme-var?

Ive tried (steq nano-theme-var dark), which gives an error. And setting it to 0-9 does nothing

rougier commented 1 year ago

Can you try (setq nano-theme-var 'dark) ? Else you can also customize the nano-theme group. Last option is to use the ELPA nano-theme.

Midnight1938 commented 1 year ago

Can you try (setq nano-theme-var 'dark) ? Else you can also customize the nano-theme group. Last option is to use the ELPA nano-theme.

I have been able to set the theme to dark. But must also use nano-toggle-theme for every client instance to "initialize" the nano visuals

Initial launch Post nano toggle
rougier commented 1 year ago

How did you do it in the end?

Midnight1938 commented 1 year ago

How did you do it in the end?

I made the nano initializer something like this:

(require 'nano-layout)
(require 'nano-faces)
(nano-faces)

And its now able to pick up new themes and toggle itself.

complete config if that helps