home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / elisp / epoch / tek-highlight-2.0 / tek-motion-highlight-setup.el < prev    next >
Encoding:
Text File  |  1992-08-20  |  2.3 KB  |  66 lines

  1. ;;*****************************************************************************
  2. ;;
  3. ;; Filename:    tek-motion-highlight-setup.el
  4. ;;
  5. ;; Copyright (C) 1992  Rod Whitby
  6. ;;
  7. ;; This program is free software; you can redistribute it and/or modify
  8. ;; it under the terms of the GNU General Public License as published by
  9. ;; the Free Software Foundation; either version 1, or (at your option)
  10. ;; any later version.
  11. ;;
  12. ;; This program is distributed in the hope that it will be useful,
  13. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. ;; GNU General Public License for more details.
  16. ;;
  17. ;; You should have received a copy of the GNU General Public License
  18. ;; along with this program; if not, write to the Free Software
  19. ;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. ;;
  21. ;; Modified by:        Rod Whitby, <rwhitby@research.canon.oz.au>
  22. ;; Author:        Ken Wood, <kwood@austek.oz.au>
  23. ;;
  24. ;; Description:    Set up the highlighting style used for mouse drag regions
  25. ;;        under epoch.
  26. ;;
  27. ;;        The zone style may be customised by means of X11 resources.
  28. ;;        The resource name to use is "motion".
  29. ;;        See the file tek-style-utils.el for details.
  30. ;;
  31. ;;*****************************************************************************
  32.  
  33. ;; $Id: tek-motion-highlight-setup.el,v 1.7 1992/08/18 04:14:11 rwhitby Rel $
  34.  
  35. (if (boundp 'epoch::version)
  36.     (progn
  37.       
  38.       (require 'motion)
  39.       (require 'tek-style-utils)
  40.  
  41.       (defvar tek-motion-foreground "green3"
  42.     "\
  43. Foreground color used to underline the drag region if no value is
  44. defined in the X11 resources and the display device supports color.")
  45.  
  46.       (defvar tek-motion-underline "green3"
  47.     "\
  48. Foreground color used to underline the drag region if no value is
  49. defined in the X11 resources and the display device supports color.")
  50.  
  51.       (if (and (> (number-of-colors) 2) tek-motion-foreground)
  52.       (tek-build-style "motion" motion::style nil
  53.                tek-motion-foreground (background)
  54.                (background) (foreground)
  55.                tek-motion-underline)
  56.     (tek-build-style "motion" motion::style
  57.              (or tek-bold-fixed-font
  58.                  tek-italic-bold-fixed-font
  59.                  tek-italic-fixed-font)
  60.              (foreground) (background)
  61.              (background) (foreground)
  62.              (foreground)))
  63.       )) ;; end: running-epoch test
  64.  
  65. (provide 'tek-motion-highlight-setup)
  66.