Emacs Macros

This page describes 3 Emacs macro functions:
  1. rkf-tags: This function runs the kmtags utility on a given directory, and loads the tags file into Emacs.

  2. rkf-frame: This function reads in a frame name and its superclass. If the frame file already exists, the function loads the file into Emacs; otherwise it prints out a template for the new frame.

  3. rkf-slot: This function reads in a slot name and its superclass. If the slot file already exists, the function loads the file into Emacs; otherwise it prints out a template for the new frame.

Here's how set up the macros:

  1. UT-CS users
    In order to load the macros into Emacs, you need to add the following lines to your .emacs file:

    ;; load *.km file into lisp-mode
    (setq auto-mode-alist (cons '("\\.km$" . lisp-mode) auto-mode-alist))
    ;; add the rkf macros
    (setq load-path (append load-path (list "/projects/rkf/util")))
    (load "rkf")

  2. others
    You need to copy-and-paste this file into your .emacs file, and dowload a copy of the kmtags. Replace "/projects/rkf/util/kmtags" in line 18 of rkf.el with the path of kmtags on your system.