From the Commentary of file header2.el
:
;; Mode-specific headers:
;; ---------------------
;; Not all headers need look alike. Suppose that you have a unix script mode
;; and want it to have a shell specifier line that all other headers do not
;; have. To do this, Place the following line in a hook called when the
;; mode is invoked or in the code that establishes the mode:
;;
;; (add-hook 'make-header-hook 'header-shell nil t)
;;
;; The header building blocks are sensitive to the different comment
;; characters in different modes.
In addition, if you need to you can make any of the user options that define parts of the header buffer-local, i.e., specific to a given mode. And if you really need to, you can do likewise for make-header-hook
.