diff --git a/doc/racket-mode.texi b/doc/racket-mode.texi index 4ade15cc..e658c047 100644 --- a/doc/racket-mode.texi +++ b/doc/racket-mode.texi @@ -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))))) diff --git a/racket-back-end.el b/racket-back-end.el index 6317477b..7d01069d 100644 --- a/racket-back-end.el +++ b/racket-back-end.el @@ -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)))))