aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyen-Hue <minh.nh1989@gmail.com>2019-01-31 13:47:47 +0700
committerMinh Nguyen-Hue <minh.nh1989@gmail.com>2019-01-31 13:47:47 +0700
commitd305f6ff3716e83b2b92d84b4e8df1d503442ad7 (patch)
tree246ff09eef18cf77bb114fcef2fb28af2d77b3dc
parent976c3f27b5908cedbe7d80ac2f63c00a976e82cd (diff)
Add env INSIDE_EMACS to vterm
# Summary My zsh config is based on env `INSIDE_EMACS` to alias things like: `vi=emacsclient`
-rw-r--r--vterm.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/vterm.el b/vterm.el
index 018fd4e..1419f97 100644
--- a/vterm.el
+++ b/vterm.el
@@ -103,7 +103,7 @@ for different shell. "
(setq-local scroll-margin 0)
(add-hook 'window-size-change-functions #'vterm--window-size-change t t)
- (let ((process-environment (append '("TERM=xterm") process-environment))
+ (let ((process-environment (append '("TERM=xterm" "INSIDE_EMACS=vterm") process-environment))
(process-adaptive-read-buffering nil))
(setq vterm--process
(make-process