This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in-package #:cl-user) | |
;; Must do ... | |
;; (setf slime-enable-evaluate-in-emacs t) | |
;; ... in emacs first. And, dot must be installed. | |
(defun graph-quicklisp-system (ql-system-designation) | |
"Display graph of system requirements." | |
(let ((dot-file "/tmp/ql-system.dot") | |
(png-file "/tmp/ql-system.png")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in-package #:cl-user) | |
(eval-when (:compile-toplevel :load-toplevel :execute) | |
(ql:quickload "cl-ppcre") | |
(ql:quickload "optima") | |
(ql:quickload "optima.ppcre") | |
(use-package '#:optima) | |
(use-package '#:optima.ppcre)) | |
(defun ensure-all-system-are-downloaded () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<style> | |
.node { | |
stroke: #fff; | |
stroke-width: 1.5px; | |
} | |
.link { | |
fill: none; | |
stroke: #666; | |
stroke-width: 1.5px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;; Load some utilities | |
;;; ... typically this would go in our ASDF system file. | |
;;; in which case you wouldn't need the eval when | |
(eval-when (:compile-toplevel :load-toplevel :execute) | |
(ql:quickload "cl-interpol") | |
(ql:quickload "named-readtables")) | |
;;;; Define a package and a read table. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; elisp that instructs slime/swank to use the ASDF cache for fasl files. | |
;;; add this to your emacs init file; and the magic happens. | |
(defun setup-to-save-swank-fasls-in-asdf-cache () | |
;; based on http://article.gmane.org/gmane.lisp.slime.devel/11080 | |
(slime-eval-print " | |
(flet ((find-fasl (path options) | |
(declare (ignore options)) | |
(let ((fasl-path | |
(asdf:apply-output-translations | |
(compile-file-pathname path)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in-package #:cl-user) | |
(defun display-doc-of-package-exports (package) | |
"Simple code to display the documenation for a package's exports." | |
(flet ((arglist (sym) | |
#+ccl (ccl:arglist sym) | |
#-ccl ())) | |
(let ((*package* (find-package package))) | |
(do-external-symbols (s *package*) | |
(loop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; -*- lexical-binding: t -*- | |
(define-slime-contrib slime-documentation-search | |
"Hand off a documenation search to a web site." | |
(:authors "Ben Hyde <[email protected]>") | |
(:license "GPL") | |
(:on-load | |
(define-key slime-doc-map "\C-s" 'slime-documention-search) | |
(define-key slime-doc-map "s" 'slime-documention-search))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun slime-hyperspec-plus-l1sp-lookup (symbol-name) | |
"The usual hyperspec lookup, but with a prefix arg uses l1sp.org instead" | |
(interactive (list (let* ((symbol-at-point (slime-symbol-at-point)) | |
(stripped-symbol | |
(and symbol-at-point | |
(downcase | |
(common-lisp-hyperspec-strip-cl-package | |
symbol-at-point))))) | |
(if (and stripped-symbol | |
(or current-prefix-arg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in-package "CL-USER") | |
(let ((*print-case* :upcase)) | |
(ql:quickload '(#:fare-memoization #:parse-number | |
#:optima #:optima.ppcre #:fare-quasiquote-optima | |
#:drakma #:closure-html))) | |
(defpackage #:eb | |
(:use #:common-lisp #:fare-memoization #:parse-number | |
#:optima #:optima.ppcre |