comparison doc/introduction.rst @ 210:fa660f084ceb

Docu: an example for configmix.try_determine_filemode()
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 06 May 2019 01:07:43 +0200
parents 2e66178a09d8
children
comparison
equal deleted inserted replaced
209:c8d071581a4c 210:fa660f084ceb
393 configmix.clear_assoc() 393 configmix.clear_assoc()
394 configmix.set_assoc("*.my.configuration", "myconfmode") 394 configmix.set_assoc("*.my.configuration", "myconfmode")
395 395
396 If :py:func:`~configmix.clear_assoc` will not be called then just a *new* 396 If :py:func:`~configmix.clear_assoc` will not be called then just a *new*
397 configuration file style will be installed. 397 configuration file style will be installed.
398
399 To select the loader not by extension but by an Emacs-compatible mode
400 declaration (e.g. ``mode: yaml``) in the first two lines of a file use::
401
402 configmix.set_assoc("*", configmix.try_determine_filemode)