Comments on EmacsMsWindowsIntegration

A quick and dirty way to replace all notepad.exe calls would be to use the Registry:

1. Start regedit.exe

2. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options

3. Add a new key named notepad.exe

4. Add (in there) a new string named Debugger and use this value: emacsclientw.exe -na runemacs.exe -F

Note that this will pretty much break the usual “-F” behavior but it is needed as Emacsclientw has no -z parameter (yet).

– tux. 2013-09-04 14:25 UTC

I know this is a pretty old post, but maybe someone will find this useful. for the debugger value this works much better emacsclientw.exe -c -a runemacs.exe -F “%1” if you leave off the “%1” then it wont open the file you click.

– Anonymous 2015-02-16 20:44 UTC

The powershell script for setting up the server upon startup doesn’t seem to be working. What worked for me is:

# Path to startup file
$startup_file = "$([Environment]::GetFolderPath('Startup'))\StartEmacsServer.bat"

# Introduce variable HOME:
# 1. for simplicity
# 2. runemacs.exe expects it to be
# %APPDATA% is chosen because runemacs.exe operates there
New-Item $startup_file -type file
Set-Content -Path $startup_file -Value "set HOME=%APPDATA%"

# Clean previous server file info first
Add-Content -Path $startup_file -Value "del /Q ""%HOME%/.emacs.d/server/*"""
Add-Content -Path $startup_file -Value "runemacs.exe --daemon"

Dmitry 2019-05-25 21:01 UTC

Please make sure you contribute only your own work. IP numbers are made available via the page history. If you want to keep it a secret, you need to use Tor. See TextFormattingRules for how to format text. See StyleGuide for the suggested writing style on this wiki.

To save this page you must answer this question:

What is the greatest editor out there?