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.
さらに、必要な場合、ヘッダーの一部を定義するユーザーオプションのいずれかをローカルに、つまり特定のモードに固有のものにすることができます。本当に必要な場合は、 make-header-hook
に対しても同様に行うことができます。