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...