sly-command-switch-to-existing-lisp 'always)
(let ((core (expand-file-name "~/sbcl.core-for-sly")))
(when (file-exists-p core)
- (setq sly-lisp-implementations (list `(sbcl ("sbcl" "--core" ,core)))))))
+ (setq sly-lisp-implementations (list `(sbcl ("sbcl" "--core" ,core))))))
+ :bind
+ (("<f7>" . sly)
+ ("S-<f7>" . re/sly-repl-new-frame)
+ ("<f9>" . re/sly-connect-stump)
+ ("S-<f9>" . sly-connect)
+ (:map sly-mrepl-mode-map ("C-c q" . re/sly-quit-current-lisp))))
(use-package geiser
:config
("S-<f6>" . re/org-show-agenda)
("S-<f7>" . re/org-agenda-new-frame)
("S-<f8>" . re/org-agenda-show-custom)
- :map org-mode-map
+ :map
+ org-mode-map
("M-<right>" . org-shiftmetaright)
("M-<left>" . org-shiftmetaleft)
("M-S-<right>" . org-metaright)
(select-frame (make-frame '((name . "SLY"))))
(call-interactively 'sly))
+(defun re/sly-quit-current-lisp ()
+ "Quit the current lisp repl connection without prompting."
+ (interactive)
+ (sly-quit-lisp nil nil))
+
+(defun re/sly-connect-stump (&optional arg)
+ "Connect to my typical stumpwm instance."
+ (interactive "P")
+ (sly-connect "localhost" 4004))
+
(provide 're-repl-defuns)
;;; re-repl-defuns.el ends here