Skip to content

Instantly share code, notes, and snippets.

@emasaka
Created December 1, 2012 07:10
Show Gist options
  • Save emasaka/4180933 to your computer and use it in GitHub Desktop.
Save emasaka/4180933 to your computer and use it in GitHub Desktop.
nautilus script: send to running emacs
#!/bin/sh
# nautilus script: send to running emacs
echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | xargs -I XX sh -c 'emacsclient -e "(find-file \"XX\")" || gdialog --msgbox "coluld not open XX"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment