aboutsummaryrefslogtreecommitdiffhomepage
path: root/fallback.teco_ini
blob: 0211ade042cdf33c1c22ecff17fd5626e7f93870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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
'