Skip to content

Instantly share code, notes, and snippets.

@pn11
Created June 18, 2021 05:13
Show Gist options
  • Save pn11/ffa24e46863fdc56ffeaab1e314ec3dc to your computer and use it in GitHub Desktop.
Save pn11/ffa24e46863fdc56ffeaab1e314ec3dc to your computer and use it in GitHub Desktop.
Do not open Emacs in VSCode Terminal
#!/bin/bash
if [ $TERM_PROGRAM = 'vscode' ]; then
code $*
else
exec emacsclient -t -a "" $*
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment