diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-24 20:50:25 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-24 20:53:55 +0100 |
commit | 6e5a6113af29dcc2380e6884fb49ed0e4fcbe16d (patch) | |
tree | 6ab0908e43744634d8bf25f8326faa9603b6dd73 /sample.teco_ini | |
parent | ad3d2f4a63cddd312cdf3571c42b420b5b23e50e (diff) | |
download | sciteco-6e5a6113af29dcc2380e6884fb49ed0e4fcbe16d.tar.gz |
allow disabling of buffer sessions. in sample.teco_ini, disable sessions automatically when files are given.
this allows you to use sciteco in a Git repository to edit a specific file,
without changing the buffer session. Also useful if SciTECO is used as the GIT_EDITOR
without thrashing the repository's session every time a commit message is edited.
Diffstat (limited to 'sample.teco_ini')
-rw-r--r-- | sample.teco_ini | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sample.teco_ini b/sample.teco_ini index 67ead44..9314859 100644 --- a/sample.teco_ini +++ b/sample.teco_ini @@ -8,9 +8,6 @@ EMQ[$SCITECOPATH]/color.tes EMQ[$SCITECOPATH]/lexer.tes EMQ[$SCITECOPATH]/session.tes -! Uncomment to use a separate session per Git repository ! -! M[session.git] ! - ! Automatic lexing and session management using ED hooks ! @#ED{ Oadd,edit,close,quit @@ -43,11 +40,15 @@ EMQ[$SCITECOPATH]/fnkeys.tes ! Uncomment to enable default keyboard macros ! ! 0,64ED ! -! open all files specified on the commandline - If no file is specified, load the last buffer session ! +! If files are given on the command-line, open them + and disable session saving. + Otherwise open a buffer session. ! Z"= + ! Uncomment to use a separate session per Git repository: ! + ! M[session.git] ! M[session.load] | + [session.path] ! disables session saving ! [.f <:L;R 0X.f [* EBQ.f ]* L> ].f |