Sublime Forum

No Clue Why ST4 is Saving Preferences to ~/.emacs.d

#1

Well, this is a mind-boggler.

I installed ST4 on a brand new Ubuntu installation to evaluate it before purchase. It is for some reason insisting on preferences being places in ~/.emacs.d/*. To install it I follow this guide.

I have used emacs in the past and have dotfiles related to it. I have removed them entirely and it STILL recreates the folder and then places the sublime-text settings folder there. I have done nothing to this install but start it.

Associated hardware information:

5.8.0-53-generic #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021 x86_64 x86_64 x86_64

GNU/Linux

description: Notebook
product: XPS 15 9560 (07BE)
vendor: Dell Inc.
serial: 8M6Z3M2
width: 64 bits
capabilities: smbios-3.0.0 dmi-3.0.0 smp vsyscall32
configuration: boot=normal chassis=notebook family=XPS sku=07BE uuid=44454C4C-4D00-1036-805A-B8C04F334D32

Any ideas? I have no idea what could cause this and have not seen it.

0 Likes

#2

Do you have XDG_CONFIG_HOME set to ~/.emacs.d?

0 Likes

#3

Yep I do actually. Not sure how it got there but it definitely shows emacs when i echo it. Is that the issue?

0 Likes

#4

Yes; from: https://developer.gnome.org/basedir-spec/

  • There is a single base directory relative to which user-specific configuration files should be written. This directory is defined by the environment variable $XDG_CONFIG_HOME .

So, you’ve essentially told all applications that follow the spec that they should store their configuration information in that location.

2 Likes

#5

Wow, thanks I really appreciate it. I was losing my marbles. I dont remember setting this file at all on this installation (Emacs isnt even installed yet!)

0 Likes