Skip to content

Commit

Permalink
Improve prose about direnv and back ends for issue #706
Browse files Browse the repository at this point in the history
  • Loading branch information
greghendershott committed Apr 12, 2024
1 parent 6970ee7 commit 3ed4c86
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions doc/racket-mode.texi
Expand Up @@ -3935,10 +3935,12 @@ are a few examples.
:racket-program "xvfb-run racket")
@end lisp

Tip: If you use various versions of Racket via .envrc files and
@code{envrc-global-mode}, then in each such directory with a .envrc
file you should have a .dir-locals.el file to force the use of a
distinct back end:
If you use various versions of Racket by setting PATH values via
direnv, .envrc files and @code{envrc-global-mode}, then you need a
distinct back end for each such project subdirectory. One
approach is to use @ref{racket-add-back-end} for each project in your
Emacs init file. Another way to is to have a .dir-locals.el file
alongside each .envrc file:

@lisp
((nil . ((eval . (racket-add-back-end default-directory)))))
Expand Down
10 changes: 6 additions & 4 deletions racket-back-end.el
Expand Up @@ -201,10 +201,12 @@ are a few examples.
:racket-program \"xvfb-run racket\")
#+END_SRC
Tip: If you use various versions of Racket via .envrc files and
`envrc-global-mode', then in each such directory with a .envrc
file you should have a .dir-locals.el file to force the use of a
distinct back end:
If you use various versions of Racket by setting PATH values via
direnv, .envrc files and `envrc-global-mode', then you need a
distinct back end for each such project subdirectory. One
approach is to use `racket-add-back-end' for each project in your
Emacs init file. Another way to is to have a .dir-locals.el file
alongside each .envrc file:
#+BEGIN_SRC lisp
((nil . ((eval . (racket-add-back-end default-directory)))))
Expand Down

0 comments on commit 3ed4c86

Please sign in to comment.