chiark / gitweb /
dot/lisp-init.lisp: Place toplevel read-time conditionals on their own lines.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 1 Jul 2020 18:33:06 +0000 (19:33 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 9 Aug 2020 03:34:42 +0000 (04:34 +0100)
I've found that this looks better.  Also, it makes it possible to run
them easily from Emacs independently of the conditional using `slime-
eval-defun' or `slime-compile-defun'.

dot/lisp-init.lisp

index d36ae5f744cb11d60853f8e8bd3a11119370ff45..0a8cb7ef3be4a71ac36ebea79905e5b54f8b8c4b 100644 (file)
@@ -6,7 +6,9 @@ (cl:in-package #:mdw-hacks)
 ;; Shut up.
 (setf *load-verbose* nil)
 (setf *compile-verbose* nil)
-#+cmu (setf *gc-verbose* nil)
+
+#+cmu
+(setf *gc-verbose* nil)
 
 ;; Obtain ASDF from somewhere.
 (require "asdf")
@@ -29,7 +31,8 @@ (let* ((homestring (or #+sbcl (sb-ext:posix-getenv "HOME")
          ("CL:SYSTEMS;**;*.*.*" #p"/usr/share/common-lisp/systems/**/*.*"))))
 
 ;; Various fixings.
-#+clisp (setf custom:*parse-namestring-ansi* t)
+#+clisp
+(setf custom:*parse-namestring-ansi* t)
 
 ;; Shebang.
 (set-dispatch-macro-character
@@ -49,7 +52,8 @@ (defun crank-swank (&rest args)
     (set (find-symbol "*GLOBAL-DEBUGGER*" swank) nil)
     (apply (find-symbol "CREATE-SERVER" swank) args)))
 
-#+asdf (setf asdf:*compile-file-failure-behaviour* :warn)
+#+asdf
+(setf asdf:*compile-file-failure-behaviour* :warn)
 
 ;; Done.
 (pushnew :mdw *features*)