OCamlPro / ocp-indent

Indentation tool for OCaml, to be used from editors like Emacs and Vim.
http://www.typerex.org/ocp-indent.html
Other
200 stars 63 forks source link

XDG base directory lookup for `ocp-indent.conf` #295

Closed dbuenzli closed 4 years ago

dbuenzli commented 5 years ago

Until recently I had avoided ocp-indent's user global config file by setting it the ocp-indent configuration option in emacs, but it seems the latter takes over projects .ocp-indent, so I had to stop doing that.

It would be nice if $XDG_CONFIG_HOME/ocp/ocp-indent.conf would be looked up according to the xdg base directory specification as an alternative to .ocp/ocp-indent.conf. This has the advantage of not cluttering your home directory with dot files and make it easier to rsync your configuration files.

thomasblanc commented 5 years ago

Sure, I'm on it. In the meantime you can use -c $XDG_CONFIG_HOME/ocp/ocp-indent.conf.