Skip to content

Instantly share code, notes, and snippets.

@sebmaynard
Created June 14, 2013 08:43
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 sebmaynard/5780419 to your computer and use it in GitHub Desktop.
Save sebmaynard/5780419 to your computer and use it in GitHub Desktop.
Start emacsclient with some progress of what's going on (useful for desktop launchers)
#!/bin/bash
## for emacsclient:
## -c is gui window
## -n is no-wait - don't wait for the window to close
## sed buffers by default
## -u is unbuffered
## zenity expects text progress to start with #
emacsclient -c -n 2>&1 | sed -u -e 's/^/# /g' | zenity --title="Starting EmacsClient" --width=600 --progress --pulsate --auto-close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment