anonimitoraf / exercism.el

Emacs integration for https://exercism.org
GNU General Public License v3.0
32 stars 3 forks source link

Parametize path to exercism config file #11

Closed jmromer closed 2 months ago

jmromer commented 2 months ago

This patch adds a custom variable exercism-config-path in order to provide fuller support for XDG base directory spec.

By default it's set to its current value of "~/.config/exercism/user.json" but can be customized to accomodate non-standard paths to $XDG_CONFIG_HOME as in, for example,

(setq exercism-config-path (format "%s/exercism/user.json" (getenv "XDG_CONFIG_HOME")))

@anonimitoraf Great library, btw — thank you! The ability to pull all unlocked exercises is a game-changer. Really improves on the CLI and web UI hugely.