aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorjixiuf <jixiuf@qq.com>2019-10-15 23:02:52 +0800
committerjixiuf <jixiuf@qq.com>2019-10-20 21:32:35 +0800
commitf133e554ff80191fd8e2eed3c8d68669e8c44764 (patch)
treeeadc83329127576fc5f60ca9bb334b10aac1a867 /README.md
parent17c29e9532f47b4cbd78bb1046463ed37b7ff195 (diff)
Support sending Elisp Command to Emacs Buffer
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 07fe24a..406ddd3 100644
--- a/README.md
+++ b/README.md
@@ -167,6 +167,15 @@ function chpwd() {
}
```
+## Send Elisp Command
+```sh
+if [[ "$INSIDE_EMACS" = 'vterm' ]]; then
+ function vi(){
+ echo -n "\e]51;E(find-file \"$@\")\e\\"
+ }
+fi
+
+```
## Related packages
- [vterm-toggle](https://github.com/jixiuf/vterm-toggle): Toggles between a vterm and the current buffer