Emacs utilities for writting BRAT classes

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Sat Jan 27 2001 - 08:58:11 EST

  • Next message: Michael Murray: "(no subject)"

    Hi BRATs, 
    
    I just made 4 small Emacs functions to help you write BRAT
    classes, that you might find useful. The functions are:
    
    * brat-header-skel
      Inserts a minimal BRAT class definition into current buffer. The
      name of class is given by the buffer name without the extension. To
      summarize:
    
      1) Open a file e.g., BrMyClass.h 
    
            C-xC-f BrMyClass.h 
     
      2) Insert the skeleton, using brat-header-skel
    
            M-x brat-header-skel
    
    * brat-source-skel
      Inserts a minimal BRAT class implmentation into current buffer. The
      name of class is given by the buffer name without the extension. To
      summarize:
    
      1) Open a file e.g., BrMyClass.cxx 
    
            C-xC-f BrMyClass.cxx
     
      2) Insert the skeleton, using brat-header-skel
    
            M-x brat-source-skel
     
    * brat-header-include 
      Inserts lines to include a BRAT class into current buffer at
      point. Prompts you for the class name:
    
            M-x brat-source-skel BrModule 
    
    * root-header-include 
      Inserts lines to include a ROOT class into current buffer at
      point. Prompts you for the class name:
    
            M-x root-source-skel BrModule 
    
    There's lots of room for improvement in these functions, and
    suggestions (preferably with Elisp code) is welcome. 
    
    I've attached a file (brat.el) with the function defintions. To use
    these functions in your Emacs session, either past the contents of
    this file into you .emacs file, or load it from your .emacs file with 
    
      (load-file "brat.el")
    
    I hope you will find this usefull. 
    
    Yours, 
    
    Christian  -----------------------------------------------------------
    Holm Christensen                             Phone:  (+45) 35 35 96 91 
      Sankt Hansgade 23, 1. th.                  Office: (+45) 353  25 305 
      DK-2200 Copenhagen N                       Web:    www.nbi.dk/~cholm    
      Denmark                                    Email:       cholm@nbi.dk
    
    
    
    



    This archive was generated by hypermail 2b29 : Sat Jan 27 2001 - 08:59:45 EST