Skip to content

Instantly share code, notes, and snippets.

@epsalt
Created January 25, 2021 15:40
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 epsalt/5eff7dd37460e4fc67ac8d73cd72593c to your computer and use it in GitHub Desktop.
Save epsalt/5eff7dd37460e4fc67ac8d73cd72593c to your computer and use it in GitHub Desktop.
Shell scripts to open WSL Emacs from windows
@echo off
wsl source "$HOME/bin/wslmacs.sh"
export DISPLAY=$(ip route | awk '{print $3; exit}'):0
export LIBGL_ALWAYS_INDIRECT=1
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
emacsclient -n -c -a ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment