blob: 10736ce24471340d76699d507262729edc157f82 (
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
|
(import (chicken load))
;; base modules
(import (chicken sort))
(import (chicken random))
(import (chicken condition))
(import (chicken irregex))
;; srfis
(import srfi-1) ;; lists
(import srfi-13) ;; strings
(import srfi-69) ;; hashtables
;; eggs
;; string-utils
(import string-hexadecimal)
(import to-hex)
;; brev-separate
(import brev-separate)
;; defstruct
(import defstruct)
;; miscmacros
(import miscmacros)
;; regex-case
(import regex-case)
;; simple-exceptions
(import simple-exceptions)
;; simple-loops
(import simple-loops)
;; http-client
(import http-client (chicken port) (chicken io))
;;sqlite
(import sqlite3)
(import sql-null)
;; slice
;; (import slice) ;; already imported at this point
;; sha2
(import sha2)
;; uuid
(import uuid)
;; medea
(import medea)
(load-verbose #f)
(let ()
(import (chicken base))
(import (chicken format))
(import (chicken process-context))
(import (chicken process signal))
(unless (get-environment-variable "INSIDE_EMACS")
(import breadline)
(import breadline-scheme-completion)
(history-file (format "~a/.csi_history" (get-environment-variable "HOME")))
(stifle-history! 10000)
(completer-word-break-characters-set! "\"\'`;|(")
(completer-set! scheme-completer)
(basic-quote-characters-set! "\"|")
(variable-bind! "blink-matching-paren" "on")
(paren-blink-timeout-set! 200000)
(let ((handler (signal-handler signal/int)))
(set-signal-handler! signal/int
(lambda (s)
(cleanup-after-signal!)
(reset-after-signal!)
(handler s))))
(on-exit reset-terminal!)
(current-input-port (make-readline-port))))
|