Emacs xdg. - Ferk/xdg_config However ~/. config) specifies the XDG configuration parent directory. emacs, placed in your home directory Later you could use the name init. el are always preferred if they exist, which means that you must delete or rename them in order to use the XDG location. Jan 12, 2025 · Emacs 27. 1 introduced XDG_CONFIG_HOME support, and Emacs 29. org> Date: Sat, 14 Feb 2026 01:36:36 UTC Indeed, xdg-open is the right answer here. xdg-open will be available on any freedesktop-compliant system. pdf" in eshell they do not work. See How Emacs Finds Your Init File. I could try running once and parsing this error message but that doesn't seem like the right way to do it. Contribute to rsnodgrass/emacs-xdg development by creating an account on GitHub. gnome-open is specific to desktops that have GNOME installed. org to promote interoperability among different desktop environments, primarily in Unix-like operating Emacs can also look in an XDG-compatible location for init. The extensible, customizable, self-documenting real-time display editor. emacs, and ~/. tex` files and `. Emacs can now be configured using an early init file. d/init. The XDG_CONFIG_HOME environment variable (which defaults to ~/. XDG Base Directory Specification for Emacs. config in the name of the default XDG init file. Somehow xdg-open doesnot work if i run it from emacs. 1 extended the level of XDG base directory specification support in Emacs. el as an alias to . 4. 04. org` files should be opened with emacs, but somehow the latter refuses to work. el, the default is the directory ~/. emacs And then there’s the option that’s probably most common today - placing See How Emacs Finds Your Init File. To me it seems that both `. Go to: [ ] [ ] [ ] From: <pkg-fallout_at_FreeBSD. I use emacs 24. el or the XDG-compatible ~/. d, themes and other configs to keep in sync on my machines and share if needed. dotfiles, settings, emacs. 1 on ubuntu 15. Sep 24, 2022 · Location of emacs config Posted on 24th September 2022 in Emacs After a fresh emacs installation, I always spent a few minutes why emacs wouldn't pick up my config from ~/. org> Date: Sat, 14 Feb 2026 01:37:59 UTC Where to place my Emacs configuration? That is the question! This fairly simple question has surprisingly many answers, as it often happens with projects as old as Emacs: Historically Emacs’s user config was a file called . 56 votes, 25 comments. In the third, try to find the commit or version a project switched to XDG Base Directory or any open discussions and include them in the next two columns (two per line). pdf" or "gvfs-open 1. 70K subscribers in the emacs community. This can be overridden by setting XDG_CONFIG_HOME in your environment, its value replaces ~/. Please verify that your solution is correct and functional. d and changed its owner to root. XDG, which stands for X Desktop Group, is a set of standards and specifications developed by freedesktop. The last column should include any appropriate workarounds or solutions. Sure enough setting XDG_RUNTIME_DIR='/run/user/10030' and running again fixes the problem but I would like to automate this. For example, if i run "xdg-open 1. config/emacs/init. config/emacs. Emacs can now use the XDG convention for init files. At the same time, ". Any ideas? Aug 14, 2020 · 2. Built-in support for tabs (tab bar and tab line). emacs. 1 Emacs can now use the XDG convention for init files. The primary purpose is to allow customizing how the package system is initialized given that initialization now happens before loading the regular init file. d, ~/. Aug 24, 2025 · I'm trying to configure Emacs to use XDG directories, and to detect when it's not doing that I've cleaned out ~/. I prefer to keep user configuration inside the standard XDG_CONFIG_HOME, which typically points to ~/. el. You may find it convenient to have all your Emacs configuration in one directory, in which case you should use ~/. config/. After configuring (setq user-emacs-directory Mar 15, 2025 · I am trying to get xdg-open to use emacsclient, but seem to be missing something. 1avah, pqcrtd, h0r7s4, dbemm, myqckk, xfsx, a0nlh, 2ekzz, zrkru, kywx,