This is the cisco-mode for emacs. It's main purpose is to highlight
cisco configs (stored by "copy run tftp" for example). It adds imenu
entries for interfaces, modems and so on, so you can easily jump
directly to the thing you are searching for.

It contains bugs, since I am not a lisp-programmer (in fact, I use
perl and c++). But some people helped me and the result is cisco-mode.el.

If you find a bug and don't know how to fix it, please don't bother me :-)

If you find a bug and do know how to fix it, please just do it: fix it
and send me the patch. This kind of help will be very welcome.




Installation:
Edit the supplied Makefile, the LISPDIR may not match your installation.
If this is the case, change it to the appropriate value on your system.
Run "make" and then "make install". After that, add these lines to your
.emacs:

(autoload 'cisco-mode "cisco-mode" "Major mode for cisco configs" t)
                      (add-hook 'cisco-mode-hook 'turn-on-font-lock)


To use the mode, just open a previously saved cisco config and load
the module with "M-x cisco-mode". Alternately you can also enable auto-
magically loading of the cisco mode by adding the following to your .emacs:

(setq auto-mode-alist
      (append '(
                ("\\.cfg$"    . cisco-mode)
                )
              auto-mode-alist))

This causes files ending with *.cfg to be treated as cisco configs.




Thomas Linden <tom@daemon.de>