[erlang-questions] program: adding flymake (emacs) support for erlang!
mog
mogorman@REDACTED
Wed Nov 7 17:31:17 CET 2007
add this to your .emacs
(when (load "flymake" t)
(defun flymake-erlang-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "eflymake" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.erl\\'" flymake-erlang-init)))
and add this to your path somewhere
filename: eflymake
#!/usr/bin/env escript
-export([main/1]).
main([File_Name]) ->
compile:file(File_Name, [warn_obsolete_guard, warn_unused_import,
warn_shadow_vars, warn_export_vars, strong_validation, report]).
then just turn on flymake and rock out while you develop.
mog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20071107/6268ddff/attachment.bin>
More information about the erlang-questions
mailing list