aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-10-09 17:21:30 +0000
committerAlyssa Ross <hi@alyssa.is>2020-10-09 17:21:30 +0000
commitda0d250ffed1adb362c91c42c61887f76db889ad (patch)
tree2621cc2c0ea4a25fb4c39e3c24e0d8b25f327470
parenta656309fcddbd1fd0a62c0a994d4da097a1adbee (diff)
downloadnixlib-da0d250ffed1adb362c91c42c61887f76db889ad.tar
nixlib-da0d250ffed1adb362c91c42c61887f76db889ad.tar.gz
nixlib-da0d250ffed1adb362c91c42c61887f76db889ad.tar.bz2
nixlib-da0d250ffed1adb362c91c42c61887f76db889ad.tar.lz
nixlib-da0d250ffed1adb362c91c42c61887f76db889ad.tar.xz
nixlib-da0d250ffed1adb362c91c42c61887f76db889ad.tar.zst
nixlib-da0d250ffed1adb362c91c42c61887f76db889ad.zip
modules/emacs: fix color output under eshell
-rw-r--r--modules/workstation/emacs/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el
index 4c480b86f09..eda221e30bf 100644
--- a/modules/workstation/emacs/init.el
+++ b/modules/workstation/emacs/init.el
@@ -39,6 +39,11 @@
(direnv-mode)
(global-set-key (kbd "C-c d") 'direnv-update-environment)
+;;; Eshell ;;;
+;; Tell programs we support ANSI color.
+(add-hook 'eshell-mode-hook
+ (lambda () (setenv "TERM" "dumb-emacs-ansi")))
+
;;; Ibuffer ;;;
;; Open ibuffer in other window, to match behaviour of the default
;; list-buffers.