dustinlyons / nixos-config

General purpose Nix configuration for macOS / NixOS with starter templates + step-by-step guides ✨
BSD 3-Clause "New" or "Revised" License
1.77k stars 112 forks source link

Add option to choose editor during install #65

Open dustinlyons opened 7 months ago

dustinlyons commented 7 months ago

Some users have asked to disable emacs and how to do that. We should ask the user what editor they want as part of install process: vim, nvim, or emacs

We can assume emacs should be daemon mode.

victorhooi commented 6 months ago

How would this work as part of the install process?

As in, would there be some kind of interactive prompt at the terminal? Or would the user put their preference into a config file that gets read in?

dustinlyons commented 6 months ago

I like the interactive prompt as if you can keep it to a few simple questions, it's easier overall for the beginner.

So my thoughts are this would be a simple question to ask you your editor preference, and then apply those settings to the config.

victorhooi commented 6 months ago

I'm still struggling to get this configuration working, with out a bunch of errors around emacs =(.

https://github.com/dustinlyons/nixos-config/discussions/69#discussioncomment-9491346

Do you have any tips on how to properly separate out the emacs from the configuration? Or what would be involved there, to do it properly, and make it say a flag?