Skip to content

Instantly share code, notes, and snippets.

@TauPan
Created October 7, 2011 11:18
Show Gist options
  • Save TauPan/1270089 to your computer and use it in GitHub Desktop.
Save TauPan/1270089 to your computer and use it in GitHub Desktop.
mutt macro for viewing changelog mail (e.g. from git commit hook) in emacs
# em is my emacsclient wrapper, you can substitute 'em' with 'emacsclient' and it should work
macro index,pager l \
"<enter-command>unset wait_key<enter><enter><pipe-message>tmpf=\$(mktemp commitlog-XXXXXX.diff); cat > \$tmpf; em \$tmpf; rm \$tmpf<enter><enter-command>set wait_key<enter>" \
"view message in diff-mode in emacs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment