File: custom.ex

package info (click to toggle)
lpe 1.2.6.11
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,792 kB
  • ctags: 1,020
  • sloc: ansic: 12,804; sh: 10,515; makefile: 351; cs: 137; perl: 111; sed: 93
file content (43 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (6)
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
% Example ~/.lpe/custom
% by Gergely Nagy <algernon@debian.org>
%

define htw (width)
{
	lpe_set_hard_tab_width (width);
}

define stw (width)
{
	lpe_set_soft_tab_width (width);
}

define bkg (color)
{
	lpe_set_bkg (color);
}

define efill (str)
{
	lpe_set_eof_fill (str);
}

define setcolor ( mode, id, fg, bg )
{
	lpe_set_option ( mode + ".color." + id, fg );
	lpe_set_option ( mode + ".background." + id, bg );
}

%define sc ()
%{
%	lpe_save_settings ();
%}

define so ( option )
{
	lpe_save_option ( option );
}

setcolor ( "lispmode", "comment", "yellow", "red" );
stw ( 2 );
htw ( 4 );