forked from koji-kojiro/cl-repl
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreplrc-example
34 lines (27 loc) · 986 Bytes
/
replrc-example
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
;;;-*- mode:lisp -*-
(in-package :repl-user)
;; Change prompt like sbcl's repl
#|
(setf *default-prompt-function*
#'(lambda () "* "))
(setf *debugger-prompt-function*
#'(lambda () (format nil "~d] " (1- *debugger-level*))))
(setf *output-indicator-function*
#'(lambda () ""))
|#
;; Set color-scheme
;; You can choose from "default" and "off", or create your own.
; (color-scheme "off")
(color-scheme "default")
;; You can define your own magic commands
;; If you want to put some message on the screen, use `cl-repl:message-from-magic` instead of `cl:format`.
;; This function always returns `"nil"` (not `nil`).
(define-magic pwd (&rest args)
(declare (ignore args))
; Put usage in one line. This documentation can be refer by %help magic.
"Show current working directory."
; Return value should be readable by cl:read-from-string
(format nil "~s" *default-pathname-defaults*))
;; disable syntax highlighting
; (disable-syntax)
;;; vim: set filetype=lisp lisp: