I found the package Automatic File Headers, I cheered and installed it with MELPA. I have found file headers to be very valuable in project development. I always know who has been where and how many times they were there. Most often, I also know what they did. The update count and last modified date are very useful in determining the proper version of a file to use.
There is one thing that I couldn't figure it out.
For example, after installing
header2 from MELPA, declare it in your dot-emacs:
;; To have Emacs update file headers automatically whenever you save a ;; file, put this in your init file (~/.emacs): (autoload 'auto-update-file-header "header2") (add-hook 'write-file-hooks 'auto-update-file-header) ;; To have Emacs add a file header whenever you create a new file in ;; some mode, put this in your init file (~/.emacs): (autoload 'auto-make-header "header2") (add-hook 'emacs-lisp-mode-hook 'auto-make-header) (add-hook 'c-mode-common-hook 'auto-make-header)
So when you create a new file in Emacs, for example foobar.el. You see a header. And it will automatically update when you write the file. Okay, let's assume I would like to change the text
So I did a grep on
Last-Updated from the package
header2 and replaced all occurences with
Foo-Last-Updated. I restarted Emacs to be sure. And there is still
Last-Updated displayed instead
Any suggestion, in order to change the header contents? I found nothing in the manuals.