-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwemacs.cmd
executable file
·38 lines (35 loc) · 1.64 KB
/
wemacs.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
rem -*- mode: Bat; coding: utf-8-unix; -*-
setlocal
rem ===========================================================================
rem GNU Emacs client `emacsclientw' wrapper
rem Copyright (C) 2014-2024 Taku Watabe
rem Time-stamp: <2024-01-08T08:13:43+09:00>
rem ===========================================================================
rem This program is free software; you can redistribute it and/or modify
rem it under the terms of the GNU General Public License as published by
rem the Free Software Foundation, either version 3 of the License, or
rem (at your option) any later version.
rem
rem This program is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
rem GNU General Public License for more details.
rem
rem You should have received a copy of the GNU General Public License
rem along with this program. If not, see <https://www.gnu.org/licenses/>.
rem ===========================================================================
set EMACS_DIR="C:\programs\emacs\bin"
set EMACS_BIN="runemacs.exe"
set EMACS_CLIENT="emacsclientw.exe"
rem Client Server File
rem
rem WARNING: In Windows environment, it is necessary to specify the server file
rem path to the environment variable EMACS_SERVER_FILE when executing
rem EMACS_CLIENT.
rem It is unclear why it is necessary.
set EMACS_SERVER_FILE="%USERPROFILE%\.emacs.server\server"
rem Execute
"%EMACS_DIR%\%EMACS_CLIENT%" -n -a "%EMACS_DIR%\%EMACS_BIN%" %*
rem ===========================================================================
endlocal