Loading ...
Sorry, an error occurred while loading the content.

Re: Multiple templates

Expand Messages
  • Dr. Detlef Groth
    Hello! I end up with the following solution: I have five templates in my microemacs dir: dgroth@mg01-xx /cygdrive/c/WINNT/Profiles/dgroth/Application
    Message 1 of 4 , May 6, 2004
    • 0 Attachment
      Hello!

      I end up with the following solution:

      I have five templates in my microemacs dir:
      dgroth@mg01-xx /cygdrive/c/WINNT/Profiles/dgroth/Application Data/jasspa
      $ ls | grep -E "perl.*.etf$"
      perl-cgi.etf
      perl-console.etf
      perl-package.etf
      perl-tk.etf
      perl.etf

      perl.etf just contains the cvs-header, the other special lib-loading,
      init and procedure stuff.

      In myperl.emf I added:
      set-variable :templates "|console|package|cgi|tk|"
      set-variable :template "console"
      define-macro dg-templates-insert
      set-variable :template @ml19 "Use Template:" :template :templates
      etfinsrt &cat "perl-" :template
      !emacro

      executing this command the right template is inserted after the cvs
      header.

      Seems to be quite usefully not only for perl.

      regards,
      Detlef
    Your message has been successfully submitted and would be delivered to recipients shortly.