Once you accumulate a lot of template files, they tend to clutter up the directory where you are building your XML document. Follow this procedure to move them to a subdirectory out of sight and use them from there.
Start in the directory where the XML document lives.
Make a subdirectory
Move your templates to that directory. For example:
mv proc step i
Add these lines to your
;; Define a command to insert a fragment from the i/ subdirectory. ;; (defun insert-frag (name) "Like insert-file but prepends 'i/' to the path given." (interactive "MTemplate: ") (insert-file (concat "i/" name))) ;; ;; Bind the above command to C-c C-e. ;; (global-set-key "\C-c\C-e" 'insert-frag)
To insert a template named
, use the key sequence