From 6e5a6113af29dcc2380e6884fb49ed0e4fcbe16d Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 24 Nov 2014 20:50:25 +0100 Subject: 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. --- sample.teco_ini | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sample.teco_ini') 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 -- cgit v1.2.3