From 703b95028a83e42251f6bda8d6e50b91d32c89f3 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 22 Feb 2022 00:29:59 +0800 Subject: Add environment variables when launching emacs --- bin/my-dmenu-run | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/my-dmenu-run') diff --git a/bin/my-dmenu-run b/bin/my-dmenu-run index 6596b52..83dc194 100755 --- a/bin/my-dmenu-run +++ b/bin/my-dmenu-run @@ -21,4 +21,8 @@ if [[ " ${tui_apps[*]} " =~ " ${prog} " ]]; then prog="$terminal -e $prog" fi +if [[ "${prog}" == emacs ]]; then + prog="LC_CTYPE='zh_CN.UTF-8' emacs" +fi + echo "$prog" | $shell & -- cgit v1.2.3