-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve SCI environment, add sci-macro (#145)
Co-authored-by: Matthew Huebert <[email protected]>
- Loading branch information
Showing
26 changed files
with
485 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
((nil | ||
. ((cider-print-fn . "emmy.expression/expression->stream") | ||
(cider-default-cljs-repl . node))) | ||
(clojurec-mode | ||
. ((cider-preferred-build-tool . clojure-cli) | ||
(cider-clojure-cli-aliases . ":test:cljs:nextjournal/clerk:dev"))) | ||
(clojure-mode | ||
. ((cider-preferred-build-tool . clojure-cli) | ||
(cider-clojure-cli-aliases . ":test:cljs:nextjournal/clerk:dev")))) | ||
(cider-default-cljs-repl . node) | ||
(cider-preferred-build-tool . clojure-cli) | ||
(cider-clojure-cli-aliases . ":test:cljs:nextjournal/clerk:dev") | ||
|
||
;; Custom indentation: | ||
(eval . (put-clojure-indent 'sci-macro :defn)) | ||
(eval . (put-clojure-indent 'careful-def 1))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
resources/clj-kondo.exports/org.mentat/emmy/hooks/emmy/util.clj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(ns hooks.emmy.util | ||
(:require [clj-kondo.hooks-api :as api])) | ||
|
||
(defn copy-ns | ||
"Converts a node representing an invocation of the [[emmy.util/copy-ns]] macro | ||
into a vector node that quotes the `ns-sym` and `opts` entries." | ||
[{:keys [node]}] | ||
(let [[_ ns-sym sci-ns opts] (:children node)] | ||
{:node | ||
(api/vector-node | ||
[(api/list-node [(api/token-node 'quote) ns-sym]) | ||
sci-ns | ||
(api/list-node [(api/token-node 'quote) opts])])})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.