diff options
Diffstat (limited to 'csirc')
-rw-r--r-- | csirc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/csirc b/csirc new file mode 100644 index 0000000..4e9ce0e --- /dev/null +++ b/csirc | |||
@@ -0,0 +1,36 @@ | |||
1 | ;;; ~/.csirc -*- scheme -*- | ||
2 | |||
3 | (set! ##sys#notices-enabled #f) | ||
4 | (import (chicken load)) | ||
5 | (load-verbose #f) | ||
6 | (require-library chicken-doc) | ||
7 | |||
8 | (let () | ||
9 | (import (chicken format)) | ||
10 | (import (chicken process-context)) | ||
11 | (import (chicken process signal)) | ||
12 | (unless (get-environment-variable "INSIDE_EMACS") | ||
13 | (import breadline) | ||
14 | (import breadline-scheme-completion) | ||
15 | (history-file (format "~a/.csi_history" (get-environment-variable "HOME"))) | ||
16 | (stifle-history! 10000) | ||
17 | (completer-word-break-characters-set! "\"\'`;|()[] ") | ||
18 | (completer-set! scheme-completer) | ||
19 | (basic-quote-characters-set! "\"|") | ||
20 | (variable-bind! "blink-matching-paren" "on") | ||
21 | (paren-blink-timeout-set! 200000) | ||
22 | (let ((handler (signal-handler signal/int))) | ||
23 | (set-signal-handler! signal/int | ||
24 | (lambda (s) | ||
25 | (cleanup-after-signal!) | ||
26 | (reset-after-signal!) | ||
27 | (handler s)))) | ||
28 | (on-exit reset-terminal!) | ||
29 | (current-input-port (make-readline-port)))) | ||
30 | |||
31 | ;; (import (beaker system)) | ||
32 | ;; (import (beaker egg info)) | ||
33 | |||
34 | (set! ##sys#notices-enabled #t) | ||
35 | |||
36 | |||