summaryrefslogtreecommitdiff
path: root/lib/spack/docs/getting_started.rst
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2023-04-18 03:42:56 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2023-04-18 03:42:56 -0700
commit1ee049ccc3d4d4bf1e8dafad0247f3cef01dda58 (patch)
tree8ee24ae7833b1fb460dd054d0bc00d251fd745a2 /lib/spack/docs/getting_started.rst
parentd8a26905ee0fc9e72a05a87bf7ced7e7fc2d4900 (diff)
downloadspack-1ee049ccc3d4d4bf1e8dafad0247f3cef01dda58.tar.gz
spack-1ee049ccc3d4d4bf1e8dafad0247f3cef01dda58.tar.bz2
spack-1ee049ccc3d4d4bf1e8dafad0247f3cef01dda58.tar.xz
spack-1ee049ccc3d4d4bf1e8dafad0247f3cef01dda58.zip
editing: add higher-precedence `SPACK_EDITOR` environment variable
Other tools like git support `GIT_EDITOR` which takes higher precedence than the standard `VISUAL` or `EDITOR` variables. This adds similar support for Spack, in the `SPACK_EDITOR` env var. - [x] consolidate editor code from hooks into `spack.util.editor` - [x] add more editor tests - [x] add support for `SPACK_EDITOR` - [x] add a documentation section for controlling the editor and reference it
Diffstat (limited to 'lib/spack/docs/getting_started.rst')
-rw-r--r--lib/spack/docs/getting_started.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/docs/getting_started.rst b/lib/spack/docs/getting_started.rst
index 3c847b876e..46bf657d62 100644
--- a/lib/spack/docs/getting_started.rst
+++ b/lib/spack/docs/getting_started.rst
@@ -368,7 +368,8 @@ Manual compiler configuration
If auto-detection fails, you can manually configure a compiler by
editing your ``~/.spack/<platform>/compilers.yaml`` file. You can do this by running
-``spack config edit compilers``, which will open the file in your ``$EDITOR``.
+``spack config edit compilers``, which will open the file in
+:ref:`your favorite editor <controlling-the-editor>`.
Each compiler configuration in the file looks like this: