Emacs: use-package xdg-state keyword 

Trying out a custom use-package keyword, :xdg-state, as an alternative to no-littering. Example usage:

```
(use-package bookmark
:xdg-state
(bookmark-default-file "bookmarks.eld"))
```

This will:

- Create $XDG_STATE_HOME/emacs/bookmark/ directory on load, if it doesn't exist.

- Set bookmark-default-file to "bookmarks.eld" beneath this directory.

Each package's state is neatly and concisely managed according to XDG.

#Emacs

Follow

Emacs: use-package xdg-state keyword 

@ross :confused: is this something you are working on, something new in emacs, or some new unnamed package?

Emacs: use-package xdg-state keyword 

@ambihelical Something I'm working on experimentally. If people like the idea, I will turn it into a package.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.