Skip to content

Instantly share code, notes, and snippets.

@alexsunxl
Created January 18, 2020 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexsunxl/5534a59cbfc59e8d88315767a7647f38 to your computer and use it in GitHub Desktop.
Save alexsunxl/5534a59cbfc59e8d88315767a7647f38 to your computer and use it in GitHub Desktop.
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