Skip to content

Instantly share code, notes, and snippets.

@alexsunxl
Created Jan 18, 2020
Embed
What would you like to do?
window sub linux emacs 启动bat
@ECHO OFF
SET status=1
(TASKLIST|FIND /I "vcxsrv.exe"||SET status=0) 2>nul 1>nul
ECHO %status%
IF %status% EQU 1 (ECHO vcxsrv is running.) ELSE (start config.xlaunch)
bash -c "export DISPLAY=localhost:0.0; xset r rate 160 38;export LC_CTYPE=zh_CN.UTF-8; export LANG=zh_CN.UTF-8; export LC_ALL=zh_CN.UTF-8; export GTK_IM_MODULE=fcitx; export QT_IM_MODULE=fcitx; export XMODIFIERS=fcitx; emacs;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment