aboutsummaryrefslogtreecommitdiffhomepage
path: root/fallback.teco_ini
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-03-03 01:44:34 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-03-03 23:35:04 +0300
commit1b907dae072f2aa93d75d8c056a9bd02555a17f8 (patch)
treea34f9cec995db63e61e9d70c93bc375fce303f25 /fallback.teco_ini
parentbe368b6f79148720b798cc98222ac86829a53724 (diff)
downloadsciteco-1b907dae072f2aa93d75d8c056a9bd02555a17f8.tar.gz
rename sample.teco_ini to fallback.teco_ini and mung it by default
* After installation, SciTECO will therefore start into a more userfriendly mode even if the user does not create a custom ~/.teco_ini. It is hoped that this will scare away less of new users, who are not willing to read through all of the documentation. Still, users are warned in the absence of ~/.teco_ini. This warning however, might not be immediately visible, especially not when running gsciteco without an attached console. (This will change once I redo the UI and allow a number of messages to be queued in the message area.) * Theoretically, you could also just extend fallback.teco_ini from ~/.teco_ini, but that would require installing it into $SCITECOPATH. * Since the fallback profile will now be munged automatically on a wide range of systems, we set up xclip only when detecting X11 ($DISPLAY is non-empty). E.g. when running under Wayland or the Linux console, you still won't get the clipboard registers, which is probably better than having the clipboard operations fail once you try to use them. * xclip is now "suggested" on Debian/Ubuntu. Unfortunately we cannot pull it in only in the presence of X11.
Diffstat (limited to 'fallback.teco_ini')
-rw-r--r--fallback.teco_ini95
1 files changed, 95 insertions, 0 deletions
diff --git a/fallback.teco_ini b/fallback.teco_ini
new file mode 100644
index 0000000..0211ade
--- /dev/null
+++ b/fallback.teco_ini
@@ -0,0 +1,95 @@
+!* TECO.INI *!
+
+!* Set default terminal color scheme *!
+EMQ[$SCITECOPATH]/color.tes
+:EMQ[$SCITECOPATH]/colors/terminal.tes
+
+!* Load lexer and buffer session libraries *!
+EMQ[$SCITECOPATH]/lexer.tes
+EMQ[$SCITECOPATH]/session.tes
+EMQ[$SCITECOPATH]/opener.tes
+
+!* Automatic lexing and session management using ED hooks *!
+@#ED{
+ Oadd,edit,close,quit
+ !add!
+ !* Add code here to execute when a document is added *!
+ :Q*+1Oedit
+ 32,0ED
+
+ !* non-UTF-8 documents are assumed to be in latin1 (8859-1) *!
+ EE"N 1024<:C; -A"T 1EE 1;'> J '
+
+ M[lexer.auto]
+
+ !* Set up margins *!
+ [_:M[lexer.test.woman]]_"F
+ 33ESTEXTWIDTH9U.w
+ 5*Q.w,0ESSETMARGINWIDTHN
+ Q.w,2ESSETMARGINWIDTHN
+ '
+
+ 0,32ED
+ !* fall through *!
+
+ !edit!
+ !* Add code here to execute when a document is edited *!
+ ESGETCOLUMN,4EJ
+ 
+
+ !close!
+ !* Add code here to execute when a document is closed *!
+ 
+
+ !quit!
+ !* Add code here to execute when SciTECO quits *!
+ M[session.save]
+}
+0,32ED
+
+!* Uncomment to enable automatic case folding *!
+!!0,8ED
+
+!*
+ * Tweak the default font name and size.
+ * The size unit is 1pt/100
+ *!
+!![lexer.font]Monospace 1300U[lexer.font]
+
+!* Enable default function key macros *!
+EMQ[$SCITECOPATH]/fnkeys.tes
+
+!* Comment out to disable mouse interaction on Curses *!
+0,64ED
+
+!* Uncomment if terminal emulator supports OSC-52 clipboards *!
+!!0,256ED
+
+:Q[$DISPLAY]">
+ !* For integrating with xclip on ncurses *!
+ [$SCITECO_CLIPBOARD_SET]xclip -in -selection {}
+ [$SCITECO_CLIPBOARD_GET]xclip -out -selection {} || true
+'
+
+!* Uncomment to enable Unicode icons in the Curses UI *!
+!!0,512ED
+
+!* Uncomment to tweak the memory limit *!
+!!500*1000*1000,2EJ
+
+!*
+ * 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 VCS repository or
+ * working copy (see session.tes):
+ *!
+ !!M[session.vcs]
+ M[session.load]
+|
+ [session.path] !* disables session saving *!
+ M[opener] -EF
+'