May 20, 2011

All Erlang Modules in the Code Path

Here’s a little thing of beauty to get all Erlang modules in your code path, should you ever need it:

[list_to_atom(filename:basename(F, ".beam"))
 || P <- code:get_path(), F <- filelib:wildcard("*.beam", P)].

Previous post
Erlang Alignment in Emacs Just realized that the default function in Emacs is quite capable. To indent, for example, a list of tuples with data, add the following alignment
Next post
Keyboard Shortcut to Focus Last Tab in Safari In Safari, contrary to every other browser out there, ⌘9 switches to the 9th tab and not the last one. This can easiy be solved with an Alfred