[erlang-questions] elisp snippet - function comment skeleton
David Welton
davidnwelton@REDACTED
Mon Sep 24 18:42:38 CEST 2007
In case anyone is interested in this sort of thing and hasn't already
built their own:
(define-skeleton erlang-function-comment
"Create Erlang comment to describe next function"
nil
"%%--------------------------------------------------------------------
%% Function: "
(progn (save-excursion
(re-search-forward "\\(^[a-z][^(]*\\)(\\([^)]*\\))" nil t)
(concat (match-string 1) "(" (match-string 2) ") -> ")))
"
%%
%% Description:
%%--------------------------------------------------------------------")
This grabs the next function, and puts a fancy comment in front of it.
--
David N. Welton
http://www.welton.it/davidw/
More information about the erlang-questions
mailing list