Changeset 30e007 in git for emacs


Ignore:
Timestamp:
May 17, 2000, 3:05:40 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1dfacb01966c89b36afa74788d0aa786aec947f1
Parents:
f0d41bc11d2424e12935103af141165658b6ccb9
Message:
added func-menu for Xemacs


git-svn-id: file:///usr/local/Singular/svn/trunk@4345 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • emacs/.emacs-singular

    rf0d41bc r30e007  
    11;;; Emacs edit mode for this file is  -*- Emacs-Lisp -*-
    2 ;;; $Id: .emacs-singular,v 1.13 2000-05-17 12:02:55 obachman Exp $
     2;;; $Id: .emacs-singular,v 1.14 2000-05-17 13:05:40 obachman Exp $
    33
    44;;;
     
    8282;; other, "non-customizable" settings
    8383
    84 ;; lazy-lock seems to be broken under mswindows:
    85 ;; causes delay of input (only reacts after mouse click), or even total
    86 ;; hang
     84;; put stuff here which should not be/only be executed under
     85;; mswindows/unix
    8786(cond ((not (or (eq system-type 'cygwin32)
    88              (eq system-type 'windows-nt)))
    89             (add-hook 'font-lock-mode-hook 'lazy-lock-mode)
    90             (setq font-lock-support-mode 'lazy-lock-mode)))
     87                (eq system-type 'windows-nt)))
     88
     89       ;; lazy-lock seems to be broken under mswindows:
     90       ;; causes delay of input (only reacts after mouse click), or even total
     91       ;; hang
     92       (add-hook 'font-lock-mode-hook 'lazy-lock-mode)
     93       (setq font-lock-support-mode 'lazy-lock-mode)
     94       
     95       ;; somewhat nicer scrolling This causes a core dump with 21.1.9
     96       ;; under cygwin, when a file is opened with a button
     97       ;; Fixed it with a simmple patch, by working around the
     98       ;; assertion in file indent.c line 517 (or so). This was
     99       ;; officially fixed in 21.1.10 -- still sometimes
     100       ;; interactive windows disappeared. Hence, do not set it under
     101       ;; Windows
     102       (setq scroll-step 10)
     103       )
     104)
     105       
    91106
    92107(add-hook 'singular-interactive-mode-hook
     
    99114          (function (lambda () (font-lock-mode 1))))
    100115
    101 ;; somewhat nicer scrolling
    102 ;; This causes a core dump with 21.1.9 under cygwin, when a file is opened
    103 ;; with a button
    104 ;; obachman: Fixed it with a simmple patch, by working around the assertion
    105 ;; in file indent.c line 517 (or so)
    106 ; (setq scroll-step 10)
    107116
    108117
     
    121130        (customize-face face)
    122131      (message "No face defined at point"))))
     132
     133
     134;; for Xemacs, use func-menu
     135;;; func-menu is a package that scans your source file for function
     136;;; definitions and makes a menubar entry that lets you jump to any
     137;;; particular function definition by selecting it from the menu.  The
     138;;; following code turns this on for all of the recognized languages.       
     139(cond ((string-match "XEmacs\\|Lucid" emacs-version)
     140       (require 'func-menu)
     141       (define-key global-map 'f8 'function-menu)
     142       (add-hook 'find-file-hooks 'fume-add-menubar-entry)
     143       (define-key global-map "\C-cl" 'fume-list-functions)
     144       (define-key global-map "\C-cg" 'fume-prompt-function-goto)
     145
     146       ;; The Hyperbole information manager package uses (shift button2) and
     147       ;; (shift button3) to provide context-sensitive mouse keys.  If you
     148       ;; use this next binding, it will conflict with Hyperbole's setup.
     149       ;; Choose another mouse key if you use Hyperbole.
     150       (define-key global-map '(shift button3) 'mouse-function-menu)
     151
     152       ;; For descriptions of the following user-customizable variables,
     153       ;; type C-h v <variable>
     154       (setq fume-max-items 25
     155             fume-fn-window-position 3
     156             fume-auto-position-popup t
     157             fume-display-in-modeline-p t
     158             fume-menubar-menu-location "File"
     159             fume-buffer-name "*Function List*"
     160             fume-no-prompt-on-valid-default nil)
     161       ))
    123162
    124163;; tricky stuff: these customization settings are not used any
     
    142181
    143182(custom-set-faces
     183 '(info-xref ((t (:foreground "blue" :bold t))))
     184 '(info-node ((t (:foreground "blue" :bold t :italic t))))
    144185 '(show-paren-match-face ((((class color)) (:foreground "Red"))))
    145  '(font-lock-string-face ((((class color) (background light)) (:foreground "Blue")) (((class color) (background dark)) (:foreground "LightSkyBlue"))) t)
    146186 '(font-lock-variable-name-face ((t (:foreground "black"))) t)
    147187 '(paren-match ((t (:foreground "Red"))) t)
    148188 '(singular-section-input-face ((t (:bold t))))
     189 '(font-lock-string-face ((((class color) (background light)) (:foreground "green4"))))
     190 '(font-lock-doc-string-face ((((class color) (background light)) (:foreground "green4"))))
    149191 '(font-lock-keyword-face ((t (:bold t :foreground "violet"))) t)
    150192 '(singular-section-output-face ((t (:bold nil))))
     
    161203;;  '(paren-match ((t (:foreground "Red"))) t)
    162204;;  '(show-paren-match-face ((((class color)) (:foreground "Red")))))
    163 
    164205)
    165206
Note: See TracChangeset for help on using the changeset viewer.