Skip to content

Instantly share code, notes, and snippets.

@ershad
Created April 2, 2011 15:37
Show Gist options
  • Save ershad/899583 to your computer and use it in GitHub Desktop.
Save ershad/899583 to your computer and use it in GitHub Desktop.
A very small python script to call emacs with "-nw" parameter so that it opens inside the terminal. Copy it to /bin/ dir to start using :)
#!/usr/bin/python
# Copyright 2011 Ershad K <ershad92@[nospam]gmail.com>
# Licensed under GPL Version 3
import sys
import os
arguments = ""
sys.argv.remove(sys.argv[0])
for arg in sys.argv:
arguments += arg
os.system("emacs -nw " + arguments)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment