etfinsrt - Insert template file into current buffer
etfinsrt "template"
etfinsrt is generally called by file hooks when the new buffer has been created as opposed to loaded from a file (see $buffer-fhook(5)).
etfinsrt uses &find(4) to locate and insert the required "template.etf" file. If successful, etfinsrt then replaces the following strings in the template:
$ASCII_TIME$
$BUFFER_NAME$
$COMPANY_NAME$
$USER_NAME$
$YEAR$
The following is taken from hkmake.emf and inserts the "makefile.etf" template if the buffer has been created.
define-macro fhook-make ; if arg is 0 this is a new file so add template !if ¬ @# etfinsrt "makefile" !endif set-variable $buffer-hilight .hilight.make -1 buffer-mode "tab" ; Normal tabs please !!! 1 buffer-mode "indent" 1 buffer-mode "time" !emacro
etfinsrt is a macro defined in etfinsrt.emf.
magic(2m) mode is always used to perform the the search/replace so the replace strings should be appropriate for magic.
(c) Copyright JASSPA 1999
Last Modified: 1999/02/27
Generated On: 1999/12/01