File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 6969
7070(defcustom cljr-magic-requires t
7171 " Whether to automatically require common namespaces when they are used.
72- These are the namespaces listed in `cljr-magic-require-namespaces' .
72+ These are the namespaces listed in `cljr-magic-require-namespaces'
73+ and returned by the `namespace-aliases' middleware op.
7374
7475If this variable is `:prompt' , typing the short form followed by
7576`\\[cljr-slash]' will ask if you want to add the corresponding require
@@ -1976,10 +1977,9 @@ the alias in the project."
19761977;;;### autoload
19771978(defun cljr-slash ()
19781979 " Inserts / as normal, but also checks for common namespace shorthands to require.
1979- If `cljr-magic-require-namespaces' is non-nil, typing one of the
1980- short aliases listed in `cljr-magic-requires' followed by this
1981- command will add the corresponding require statement to the ns
1982- form."
1980+ If `cljr-magic-requires' is non-nil, executing this command after one of the aliases
1981+ listed in `cljr-magic-require-namespaces' , or any alias used elsewhere in the project,
1982+ will add the corresponding require statement to the ns form."
19831983 (interactive )
19841984 (insert " /" )
19851985 (when-let (aliases (and cljr-magic-requires
You can’t perform that action at this time.
0 commit comments