mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-05 03:32:34 +01:00
add cl-repl config
This commit is contained in:
parent
37fda01b51
commit
f31994f491
2 changed files with 23 additions and 0 deletions
22
.replrc
Normal file
22
.replrc
Normal file
|
@ -0,0 +1,22 @@
|
|||
;;; vim: ft=commonlisp
|
||||
;; Config file for cl-repl (yes, WTF)
|
||||
|
||||
(defpackage :repl-user
|
||||
(:use :cl :cl-repl)
|
||||
(:import-from cl-repl *magic-commands*))
|
||||
(in-package :repl-user)
|
||||
|
||||
(define-magic swank (&rest args)
|
||||
(declare (ignore args))
|
||||
"Start a SWANK server."
|
||||
(ql:quickload :swank)
|
||||
;; Needs to be an eval since swank package isn't loaded at compile-time
|
||||
(eval "(swank:create-server :dont-close t)"))
|
||||
|
||||
;; Remove bullshit commands
|
||||
(delete-if
|
||||
(lambda (cmd)
|
||||
(let ((name (car cmd)))
|
||||
(or (string= name "%python")
|
||||
(string= name "%perl"))))
|
||||
*magic-commands*)
|
|
@ -5,6 +5,7 @@ cg.addPath ".cargo"
|
|||
cg.addPath "etc"
|
||||
|
||||
cg.addFile ".Xresources.cgt"
|
||||
cg.addFile ".replrc"
|
||||
|
||||
-- Recursively merge 2 tables
|
||||
local function merge(a, b)
|
||||
|
|
Loading…
Reference in a new issue