Lugaru's Epsilon Programmer's Editor
Context:
| Directory-wide File Variables
|
|
Previous
|
Up
|
Next
|
File Variables |
Commands by Topic |
Vi/Vim File Variables |
Epsilon User's Manual and Reference >
Commands by Topic >
Buffers and Files >
File Variables >
Directory-wide File Variables
You can put file variables in a
special file named .epsilon_vars . Such settings apply to all
files in its directory. In an .epsilon_vars file, lines starting
with # are comments. It contains one or more sections. Within
each section, settings in it appear one per line, with a setting name,
a colon, and a value. Each section begins with a line that says which
files or modes it affects:
# Special settings for this directory.
Extensions: .r*
mode: Perl
Modes: Perl|Python
tab-size: 3
Modes: C
tab-size: 5
indent-tabs-mode: nil
Filenames: buildfile*|build[1-2]*|*build.dat
mode: makefile
The Modes, Extensions, and Filenames lines use a file wildcard
pattern. It can use | for alternation, ? to match a single
character or * to match any number, or character ranges like
[a-z] . Epsilon will apply the settings in the section that
follows only if the original file's extension, mode, or basename
matches the pattern. This example says that all files with an
extension like .r or .rxx or .ram in that directory should use Perl
mode, and sets the tab size to 3 for Perl or Python files, and 5 for C
files, also turning off using Tab characters to indent. Then it says
that files whose names start with buildfile, build1, or build2, or end
in build.dat, should use Makefile mode.
Epsilon decides which sections to use before applying the settings, so
an .rxx file forced to Perl mode by the above example file won't get a
tab size of 3 unless you add a tab-size: 3 line to its Extensions
section. Also note that "mode: " sets a file's mode;
"Modes: " begins a section for a specific mode. File variables
in an individual file take precedence over those in an
.epsilon_vars file.
Previous
|
Up
|
Next
|
File Variables |
Commands by Topic |
Vi/Vim File Variables |
Copyright (C) 1984, 2020 by Lugaru Software Ltd. All rights reserved.
|