Created
January 18, 2020 14:13
-
-
Save alexsunxl/5534a59cbfc59e8d88315767a7647f38 to your computer and use it in GitHub Desktop.
window sub linux emacs 启动bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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