home *** CD-ROM | disk | FTP | other *** search
- ;*****************************************************************************
- ;
- ; Filename: tek-src-hilite-setup.el
- ;
- ; Copyright (C) 1991 Ken Wood
- ;
- ; This program is free software; you can redistribute it and/or modify
- ; it under the terms of the GNU General Public License as published by
- ; the Free Software Foundation; either version 1, or (at your option)
- ; any later version.
- ;
- ; This program is distributed in the hope that it will be useful,
- ; but WITHOUT ANY WARRANTY; without even the implied warranty of
- ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ; GNU General Public License for more details.
- ;
- ; You should have received a copy of the GNU General Public License
- ; along with this program; if not, write to the Free Software
- ; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- ;
- ; Author: Ken Wood, <kwood@austek.oz.au>
- ; Organisation: Austek Microsystems Pty Ltd, Australia.
- ; Released with permission from Austek Microsystems.
- ;
- ; Description: Set up to do comment highlighting in source code buffers.
- ; Highlighting is updated on find-file and save-buffer.
- ;
- ; See the INSTALL file that comes with this package for
- ; installation details.
- ;
- ;*****************************************************************************
-
- ; $Id: tek-src-hilite-setup.el,v 1.3 1991/10/23 02:15:10 kwood Exp $
-
- (require 'maclib-toolbox)
- (require 'epoch-running)
- (provide 'tek-src-hilite-setup)
-
- (if running-epoch
- (progn
- ; Update buttons when files are loaded or saved.
- (postpend-unique-hook 'find-file-hooks
- 'tek-highlight-comments-on-find)
- (postpend-unique-hook 'write-file-hooks
- 'tek-highlight-comments-on-write)
-
- ; Where to find the comment highlighting functions.
- (autoload 'tek-highlight-comments-on-find
- "tek-src-hilite" "autoloadable function" t)
- (autoload 'tek-highlight-comments-on-write
- "tek-src-hilite" "autoloadable function" t)
- ))
-