From 0194326b89adacd3c1a75aacbcd30c6cd71bf598 Mon Sep 17 00:00:00 2001 From: Julian Mehne Date: Sun, 21 Jan 2018 19:47:56 +0100 Subject: Document the default values of template_dir and themes_dir. --- docs/source/configuration/alotrc_table | 4 +++- docs/source/configuration/theming.rst | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/source/configuration/alotrc_table b/docs/source/configuration/alotrc_table index a7bc5ec6..0299d406 100644 --- a/docs/source/configuration/alotrc_table +++ b/docs/source/configuration/alotrc_table @@ -576,6 +576,7 @@ templates directory that contains your message templates. It will be used if you give `compose --template` a filename without a path prefix. + The default path is `$XDG_CONFIG_HOME/alot/temmplates`. :type: string :default: None @@ -605,7 +606,8 @@ .. describe:: themes_dir - directory containing theme files + directory containing theme files. + The default path is `$XDG_CONFIG_HOME/alot/themes`. :type: string :default: None diff --git a/docs/source/configuration/theming.rst b/docs/source/configuration/theming.rst index caf14047..ea04d7c8 100644 --- a/docs/source/configuration/theming.rst +++ b/docs/source/configuration/theming.rst @@ -11,7 +11,8 @@ To make it easier to switch between or share different such themes, they are def files (see below for the exact format). To specify the theme to use, set the :ref:`theme ` config option to the name of a theme-file. A file by that name will be looked up in the path given by the :ref:`themes_dir ` config setting -which defaults to :file:`~/.config/alot/themes/`. If the themes_dir is not +which defaults to $XDG_CONFIG_HOME/alot/themes, and :file:`~/.config/alot/themes/`, +if XDG_CONFIG_HOME is empty or not set. If the themes_dir is not present then the contents of $XDG_DATA_DIRS/alot/themes will be tried in order. This defaults to :file:`/usr/local/share/alot/themes` and :file:`/usr/share/alot/themes`, in that order. These locations are meant to be used by distro packages to put themes in. -- cgit v1.2.3