News for hackers. Stuff that matters.
Re:$Home, Not So Sweet $Home by devnullbrain on Wednesday August 16, 2023 @07:04PM (#37155047)
Multiple options for configuration files is a well-trod, easy solution. You shouldn't have to migrate.
Re:$Home, Not So Sweet $Home by INGSOCIALITE on Wednesday August 16, 2023 @07:38PM (#37155321)
Everyone should do what emacs does (and a lot of software does): first look for .emacs for a config … not there? Check .emacs.d … still not there? .config/emacs …
Re:$Home, Not So Sweet $Home by tsimionescu on Thursday August 17, 2023 @07:56AM (#37160253)
That's not exactly what emacs does: if ~/.config/emacs isn't there, then it will default to creating ~/.emacs.d/ and ~/.emacs, even if the XDG env vars are set. Basically, emacs supports XDG config if you really want it to, but it's not the default way of using emacs. And of course, it only uses ~/.config/emacs, none of the other XDG folders. If you download a package from MELPA, that's still going to .config/emacs, as far as I know.
Re:$Home, Not So Sweet $Home by arp242 on Wednesday August 16, 2023 @07:56PM (#37155459)
But also not without the downsides, because what do you do if multiple files are found? And how will you communicate that to the user, if at all? Lots of room for confusion here: "why aren't my changed taking effect?!", "where is this setting coming from, it's not in my file?!" and things like that.
Re:$Home, Not So Sweet $Home by devnullbrain on Wednesday August 16, 2023 @08:00PM (#37155483)
Stick it in the manpage. Neovim does this. Power users who care about non-standard configuration should be able to carry the burden of managing it.
Re:$Home, Not So Sweet $Home by arp242 on Wednesday August 16, 2023 @08:26PM (#37155661)
Things like bashrc and vimrc have been "standard" for decades; that's not a "non-standard configuration", it's what everyone uses today. And Neovim only supports ~/.config/nvim/init.vim judging from the manpage(?) If it doesn't then this only underscores my point that all of this is apt to lead to confusion.

Either way, it had a clean break from Vim and didn't have to deal with people who have been using Neovim for decades (lots of things are different compared to Vim and it's not intended to be compatible in the first place).

Re:$Home, Not So Sweet $Home by devnullbrain on Wednesday August 16, 2023 @09:03PM (#37155873)
By non-standard I mean XDG home