Software Ninja

The Software Ninja is a professional software developer. Here are some books I find interesting and useful.

My Photo
Name: Matthew O. Smith
Location: Utah, United States

While continuing to provide for his family as a computer programmer, Matt has been studying marriage and relationships for many years. He is the author of the soon to be released book: Ferocious Flirting: Making Marriage Wonderful. He is also available for speaking to groups on keeping the romance going in marriage. Feel free to email me with comments, questions or suggestions.

Wednesday, December 3, 2008

Adding support for decompiling class files in a jar file in emacs

This simple EMACS hook checks for CAFEBABE at the beginning of a file extracted from the an archive (jar, war, etc) and decompiles it. Requries decompile.el and JDEE.
Thanks for decompile.el. It is great.

(add-hook
'archive-extract-hooks
(lambda ()
(cond ((string-match "\312\376\272\276" ;;CAFEBABE
(buffer-substring-no-properties 1 5))
(jdc-buffer)))))

0 Comments:

Post a Comment

<< Home