Tip of the day

Luke Gorrie luke@REDACTED
Fri Nov 12 23:00:00 CET 2004


Joe Armstrong <joe@REDACTED> writes:

> Put This in your .emacs file

Another nice command is for signing comments with a timestamp:

 (defun sign-comment ()
   "Insert a timestamped signature (for comments)."
   (interactive)
   (push-mark)
   (insert (concat "-" (user-login-name) (format-time-string " (%d/%b/%Y)"))))

When I run the command it inserts "-luke (13/Nov/2004)", which is nice
after a comment about something "temporary."





More information about the erlang-questions mailing list