Add +chicken.el

This commit is contained in:
Case Duckworth 2022-04-02 13:52:40 -05:00
parent 2e46fd9241
commit 122ee05071
2 changed files with 20 additions and 0 deletions

View File

@ -1530,6 +1530,7 @@ See also `crux-reopen-as-root-mode'."
geiser-chicken
macrostep-geiser
scheme-complete)
(:also-load +chicken)
(setf (alist-get "\\.scm\\'" auto-mode-alist nil nil #'string=)
'scheme-mode))

19
lisp/+chicken.el Normal file
View File

@ -0,0 +1,19 @@
;;; +chicken.el --- Chicken Scheme additions -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:
;; Reload [[https://wiki.call-cc.org/eggref/5/awful][awful]] with a keybinding
(defun +chicken-awful-reload ()
"Reload awful by visiting /reload."
(interactive)
(save-buffer)
(condition-case e
(url-retrieve-synchronously "http://localhost:8080/reload")
(file-error (message "Couldn't ping awful's server. Is it running?"))
(t (message "Some awful error occurred!"))))
(provide '+chicken)
;;; +chicken.el ends here