diff options
-rw-r--r-- | config.org | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/config.org b/config.org index 8b1f6cc..128744c 100644 --- a/config.org +++ b/config.org | |||
@@ -1347,20 +1347,21 @@ fi | |||
1347 | 1347 | ||
1348 | *** Emacs.cmd | 1348 | *** Emacs.cmd |
1349 | 1349 | ||
1350 | Here's a wrapper script that'll run Emacs on Windows, with a custom | 1350 | Here's a wrapper script that'll run Emacs on Windows, with a custom =$HOME=. I have |
1351 | =$HOME=. I have mine setup like this: Emacs is downloaded from [[https://mirrors.tripadvisor.com/gnu/emacs/windows/emacs-27/emacs-27.1-x86_64.zip][the | 1351 | mine setup like this: Emacs is downloaded from [[https://mirrors.tripadvisor.com/gnu/emacs/windows/emacs-27/emacs-27.1-x86_64.zip][the GNU mirror]] and unzipped to |
1352 | GNU mirror]] and unzipped to =~/Downloads/emacs/=. =Emacs.cmd= sets | 1352 | =~/Downloads/emacs/=. For some reason, Emacs by default sets =$HOME= to =%APPDATA%=, |
1353 | =$HOME= to =~/Downloads/emacshome/=, which is where =.emacs.d= is, and | 1353 | which doesn’t make a lot of sense to me. I change it to =%USERPROFILE%=, and then run |
1354 | whatever else I might want to throw in there. | 1354 | Emacs with the supplied arguments. |
1355 | 1355 | ||
1356 | #+begin_src bat :tangle bin/Emacs.cmd | 1356 | #+begin_src bat :tangle bin/Emacs.cmd |
1357 | set HOME=%~dp0..\..\emacshome | 1357 | set HOME=%USERPROFILE% |
1358 | set EMACS="%USERPROFILE%\Downloads\emacs\bin\runemacs.exe" | ||
1358 | 1359 | ||
1359 | REM Run "Quick Mode" | 1360 | REM Run "Quick Mode" |
1360 | REM "%~dp0runemacs.exe" -Q %* | 1361 | REM "%EMACS%" -Q %* |
1361 | 1362 | ||
1362 | REM Regular | 1363 | REM Regular |
1363 | "%~dp0runemacs.exe" %* | 1364 | "%EMACS%" %* |
1364 | #+end_src | 1365 | #+end_src |
1365 | 1366 | ||
1366 | ** License | 1367 | ** License |