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

2097Re: [jasspa] short questions

Expand Messages
  • dsjkvf
    Nov 6, 2006
    • 0 Attachment
      On 11/6/06, dsjkvf <dsjkvf@...> wrote:
      > i want to create a new file and apply certain template to it (in my
      > particular case i want the file's major mode be set to doc). of
      > course, i want to do it with one keypress :) (with macro, i think) --
      > in fact, it should be something like that: ask for a name for a new
      > buffer, create buffer with this name and then set buffer's major mode
      > to doc.
      >
      > how new buffers are created in ME at all? i don't seem to find any
      > create-buffer command :).

      in fact, i can even operate this way:

      define-macro new-doc-file
      find-buffer "*scratch*"
      insert-string "> -!- document -!-"
      write-buffer
      !emacro

      but then the highlighting will not work -- the file needs either to be
      reopen (and then the header will set it's major mode to doc) or i
      should set his mode manually via Tools -> Buffer setup -> Major mode.

      what do you think, is there any way to automate this procedure?





      --
      dsjkvf
    • Show all 11 messages in this topic