Skip to content

Commit

Permalink
Update texinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
10sr committed Sep 22, 2018
1 parent 8e741a9 commit 6159562
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions doc/editorconfig.texi
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ trailing-newline-free
@item
@code{max_line_length}
@item
@code{file_type_ext} (Experimental)
@item
@code{file_type_emacs} (Experimental)
@item
@code{root} (only used by EditorConfig core)
Expand All @@ -100,14 +102,28 @@ on our radar. Similarly, we don't yet hook in to all different packages
for whitespace trimming to inform them about editorconfig settings, but
aim for better coverage of things like
@uref{ftp://ftp.lysator.liu.se/pub/emacs/ws-trim.el,ws-trim}.
@menu
* File Type::
@end menu

@node File Type
@subsection File Type
@anchor{#file-type}
This plugin also has an experimental support for @code{file_type_ext}
and @code{file_type_emacs}, which specifies ``file types'' for files. As
for Emacs, it means @code{major-mode} can be specified.

@strong{file_type_ext} When it is set to @code{md} for @code{a.txt}, for
example, @code{major-mode} will be decided as if the file name would be
@code{a.txt.md} (and thus @code{markdown-mode} is likely to be used).

@strong{file_type_emacs} When it is set to @code{markdown} for
@code{a.txt}, @code{markdown-mode} will be enabled when opening
@code{a.txt}.

This plugin also has an experimental support for @code{file_type_emacs},
which specifies ``file types'' for files. As for Emacs, it means
@code{major-mode} can be specified: for example, when
@code{file_type_emacs} is set to @code{markdown} for @code{a.txt},
@code{markdown-mode} will be enabled when opening @code{a.txt}. This
property is experimental and its meaning might change in the future
updates.
These property are experimental and their meanings might change in the
future updates. When both are specified, @code{file_type_ext} takes
precedence.

@node Customize
@section Customize
Expand Down

0 comments on commit 6159562

Please sign in to comment.