Skip to content

Commit a0e965a

Browse files
docs: revised emacs tramp docs
1 parent 3bddcf2 commit a0e965a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/ides/configuring-emacs-tramp.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ To fix this:
2222
```lisp
2323
(setq tramp-default-method "ssh")
2424
```
25-
2. Be sure to set the hostname on the workspace to the `coder.<name>` format:
25+
2. Then on your Coder workspace instance be sure to set the hostname to the `coder.<name>` format:
2626
```bash
2727
hostname coder.<name>
2828
```
29+
This can also be done in the workspace Terraform template by setting workspace isntance's hostname to the data `coder_workspace.name` attribute. How this is done depends on how the instance is provisioned.
2930
3. Next in the shell profile file on the workspace (ex., `~/.bashrc`) add the following:
3031
```bash
3132
ansi_term_announce_host() {
@@ -52,4 +53,4 @@ To fix this:
5253

5354
ansi_term_announce
5455
```
55-
Ansi Term expects the terminal running inside of it to send escape codes to inform Emacs of the hostname, user, and working directory. The above code sends these escape codes and associated data whenever the terminal logs in and whenever the directory changes.
56+
Ansi Term expects the terminal running inside of it to send escape codes to inform Emacs of the hostname, user, and working directory. The above code sends these escape codes and associated data whenever the terminal logs in and whenever the directory changes. The expression in step 1 lets Emacs know that you are accessing the hostname these escape codes announce via SSH.

0 commit comments

Comments
 (0)