Skip to content

Instantly share code, notes, and snippets.

@priyadarshan
Forked from railwaycat/Emacs_starter.pl
Created July 13, 2014 18:19
Show Gist options
  • Save priyadarshan/3e43846123ea406e85ae to your computer and use it in GitHub Desktop.
Save priyadarshan/3e43846123ea406e85ae to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
# Emacs starter for Emacs mac port
# Thanks to Aquamacs Project and David Reitter
my $args = "";
my $tmpfiles = "";
for my $f (@ARGV) {
$args .= '"'.$f.'" ';
$tmpfiles .= '"'.$f.'" ' if (! -e $f);
}
system("touch $args") if ($tmpfiles);
system("open -a /Applications/Emacs.app $args");
# delay deletion because AE drag&drop doesn't work with non-existing documents
system("(sleep 3; rm $tmpfiles) &") if ($tmpfiles);
exit;
@devinrhode2
Copy link

Do you mind deleting this fork? It has not changes from the original and is distracting for others reading about creating a cli starter for railwaycat's Emacs mac port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment