-
Notifications
You must be signed in to change notification settings - Fork 78
/
init.lisp
107 lines (87 loc) · 3.95 KB
/
init.lisp
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
96
97
98
99
100
101
102
103
104
105
106
107
(push-module-directory "MODULES")
(push-module-directory "SYS")
;;(setf (current-directory) *cormanlisp-directory*)
;;; Use external WWW-browser for documentation lookups
;;(setf ccl::*use-external-browser* t)
;;;
;;; Various special variables used by the system or the IDE
;;;
;;; Starting from Corman Lisp 3.1.0, the variable *IPV6* is set to T and
;;; the :IPv6 feature is added to the *FEATURES* list when lisp is
;;; loaded, if IPv6 is installed in your computer. *IPV6* controls
;;; whether IPv6 addresses are looked up by default during name
;;; resolution. Valid values are; NIL, :ONLY and T. If IPv6 is installed
;;; but you don’t have an IPv6 connection, it is best to set *IPV6* to
;;; NIL as it may slow down connections by trying to unsuccessfully
;;; connect to IPv6 addresses.
; (setq sockets:*ipv6* nil)
;;; Set ccl:*auto-update-enabled* to NIL if you wish to disable
;;; automatic checking for updates (patches) by the IDE.
(setf ccl:*auto-update-enabled* nil)
;; for testing only
;;(defparameter *patch-root-directory* "/CormanLisp/patches/3_01f1/")
;;; If you need to connect through a proxy server,
;;; uncomment the following and set the server and port correctly.
;;; Note that internet windows in the IDE use Internet Explorer's proxy
;;; settings. The setting below is only needed for the auto-update feature or
;;; any calls made via the SOCKETS package.
;;;
#|
(setf sockets:*default-proxy-server*
(make-instance 'sockets:generic-proxy-server
:host "proxy.myserver.com" ;; your proxy server name or IP address
:port 8080)) ;; your proxy server port ID
|#
;;;
;;; If running in the IDE, initialize menus
;;;
(when (eq (cormanlisp-client-type) :ide-client)
(ide::setup-ide-menus))
;;; IDE colorization overrides
;;; To define a custom color:
;;; example: (defconstant red (win:RGB 255 0 0))
;;;
(setf ide:comment-format
(ide:make-text-format
:color ide:dark-green
:italic t))
(setf ide:keyword-format
(ide:make-text-format
:color ide:blue))
(setf ide:lisp-symbol-format
(ide:make-text-format
:bold t))
(setf ide:string-format
(ide:make-text-format
:color (win:RGB #xa0 #x00 #x00)
:italic t))
;; the color of the user's preference will be used if it has been set, and
;; the color of normal-format ignored
(setf ide:normal-format (ide:make-text-format :bold nil :italic nil :color ide:black))
(when (eq (cormanlisp-client-type) :console-client)
(setf cl::*top-level-prompt* "?")
(format t "Type :quit to exit.~%")
(values))
;;; set your own local path for the Hyperspec
;; eg. (setq *hyperspec-local-path* "c:/roger/lisp/HyperSpec/")
;; unless the Hyperspec is already installed at this location
;; it to that location
;; Automatically set HyperSpec path to the one installed with Corman Lisp.
(let ((hyperspec-install-path (merge-pathnames "HyperSpec\\"
(namestring *cormanlisp-directory*))))
(when (probe-file (merge-pathnames "Front\\Contents.htm" hyperspec-install-path))
(setq *hyperspec-local-path* (namestring hyperspec-install-path))))
;;; set your own declaration symbols list
;; eg. (setf ide:*declaration-symbols* '("defun" "define-symbol-macro")) or
;; (setf ide:*declaration-symbols* (append ide:*declaration-symbols* '("defwinconstant" "defwinapi")))
(setf ide:*declaration-symbols* '("defun" "defconstant" "defparameter" "defvar" "defclass"
"defmacro" "defmethod" "defasm" "defop" "defgeneric"
"deftype" "defstruct" "defsetf" "defpackage" "in-package"))
;; Clear out any History menu items left from building the image file
(cl::truncate-command-history 0)
;; Auto-update feature
(when (and ccl:*auto-update-enabled*
(eq (cormanlisp-client-type) :ide-client))
(ccl:auto-update))
;; export from CL package
(export (find-symbol "LOAD-DEFAULT-IMAGE" 'cl) 'cl)