Skip to content

Commit

Permalink
Merge pull request #13 from Fuglesteg/feature/add-micros-to-features
Browse files Browse the repository at this point in the history
Add :micros keyword to *features*
  • Loading branch information
cxxxr authored May 27, 2024
2 parents f80d777 + 1dfa8f4 commit 4b1f3ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions micros.asd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
:depends-on ()
:version "0.0.0"
:serial t
:perform (load-op :after (o c)
(uiop:symbol-call :micros :before-init))
:components ((:file "packages")
(:module "sbcl"
:pathname "backend"
Expand Down
4 changes: 4 additions & 0 deletions micros.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ include some arbitrary initial value like NIL."
;;; simple indirection. The interface is more CLish than the Emacs
;;; Lisp one.

(defun before-init ()
"Is run when the system is loaded, see micros.asd"
(pushnew :micros *features*))

(defmacro add-hook (place function)
"Add FUNCTION to the list of values on PLACE."
`(pushnew ,function ,place))
Expand Down

0 comments on commit 4b1f3ca

Please sign in to comment.