mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Insert missing step to make use of directory tracking OSC codes
* doc/emacs/misc.texi (Interactive Shell): Say to add comint-osc-process-output to comint-output-filter-function.
This commit is contained in:
parent
1bed294958
commit
df3fb94f09
1 changed files with 8 additions and 1 deletions
|
|
@ -955,6 +955,13 @@ at each prompt, for instance with the following command:
|
|||
printf "\e]7;file://%s%s\e\\" "$HOSTNAME" "$PWD"
|
||||
@end example
|
||||
|
||||
@noindent
|
||||
Then tell Emacs to process the escape codes:
|
||||
|
||||
@lisp
|
||||
(add-hook 'comint-output-filter-functions #'comint-osc-process-output)
|
||||
@end lisp
|
||||
|
||||
@vindex explicit-shell-file-name
|
||||
@cindex environment variables for subshells
|
||||
@cindex @env{ESHELL} environment variable
|
||||
|
|
@ -1188,7 +1195,7 @@ supports some extend escape codes, like some of the @acronym{OSC}
|
|||
(Operating System Codes) if you put the following in your init file:
|
||||
|
||||
@lisp
|
||||
(add-hook 'comint-output-filter-functions 'comint-osc-process-output)
|
||||
(add-hook 'comint-output-filter-functions #'comint-osc-process-output)
|
||||
@end lisp
|
||||
|
||||
With this enabled, the output from, for instance, @code{ls
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue