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 69
69
70
70
(defcustom cljr-magic-requires t
71
71
" 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.
73
74
74
75
If this variable is `:prompt' , typing the short form followed by
75
76
`\\[cljr-slash]' will ask if you want to add the corresponding require
@@ -1976,10 +1977,9 @@ the alias in the project."
1976
1977
;;;### autoload
1977
1978
(defun cljr-slash ()
1978
1979
" 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."
1983
1983
(interactive )
1984
1984
(insert " /" )
1985
1985
(when-let (aliases (and cljr-magic-requires
You can’t perform that action at this time.
0 commit comments