Klimi's new dotfiles with stow.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

37 rader
1.0 KiB

4 år sedan
  1. ;;; -*- lisp -*-
  2. ;; ASDF system definition for loading the Swank server independently
  3. ;; of Emacs.
  4. ;;
  5. ;; This is only useful if you want to start a Swank server in a Lisp
  6. ;; processes that doesn't run under Emacs. Lisp processes created by
  7. ;; `M-x slime' automatically start the server.
  8. ;; Usage:
  9. ;;
  10. ;; (require :swank)
  11. ;; (swank:create-swank-server PORT) => ACTUAL-PORT
  12. ;;
  13. ;; (PORT can be zero to mean "any available port".)
  14. ;; Then the Swank server is running on localhost:ACTUAL-PORT. You can
  15. ;; use `M-x slime-connect' to connect Emacs to it.
  16. ;;
  17. ;; This code has been placed in the Public Domain. All warranties
  18. ;; are disclaimed.
  19. (defpackage :swank-loader
  20. (:use :cl))
  21. (in-package :swank-loader)
  22. (defclass swank-loader-file (asdf:cl-source-file) ())
  23. ;;;; after loading run init
  24. (defmethod asdf:perform ((o asdf:load-op) (f swank-loader-file))
  25. (load (asdf::component-pathname f))
  26. (funcall (read-from-string "swank-loader::init") :reload t))
  27. (asdf:defsystem :swank
  28. :default-component-class swank-loader-file
  29. :components ((:file "swank-loader")))