Skip to content

Commit

Permalink
Add :micros keyword to *features*
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuglesteg committed Mar 25, 2024
1 parent 23f52d5 commit 1dfa8f4
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 1dfa8f4

Please sign in to comment.