![]() | Top | Language Definition | Projects | Links | Goodies | M3 Home Page | FAQ | ![]() |
For more information about modula3.el, go to the DEC SRC gnuemacs page.
;; make sure font-lock variables are loaded (require 'font-lock) ;; html-mode is damaged so this needs to be done this way ;; this is still true in emacs 20.x (setq font-lock-maximum-decoration '((html-mode . nil) (t . t)))
This is the list of faces that are used by m3font.el
;; First of all determine which version of emacs is being used (setq my::emacs-type (cond ((string-match "^19\\." emacs-version) "gnu-19") ((string-match "^20\\." emacs-version) "gnu-20") (t "unknown"))) ;; will be one or the other, otherwise use default font colors (if (equal my::emacs-type "gnu-19") (load "emacs-19-font-lock")) (if (equal my::emacs-type "gnu-20") (load "emacs-20-font-lock"))
;; This is to assign the colors, etc. for the fonts used by font-lock ;; in emacs 19.x versions and prior. ;; ;; font-lock-face-attributes ;; (FACE FOREGROUND BACKGROUND BOLD-P ITALIC-P UNDERLINE-P) ;; (setq font-lock-face-attributes '((font-lock-comment-face "Cyan" nil nil nil nil) (font-lock-function-name-face "SpringGreen" nil nil nil nil) (font-lock-keyword-face "Gold" nil nil nil nil) (font-lock-string-face "Khaki" nil t nil nil) (font-lock-reference-face "Aquamarine" nil t nil nil) (font-lock-type-face "LightBlue" nil t nil nil) (font-lock-warning-face "Violet" nil nil nil nil) (font-lock-builtin-face "PaleGreen" nil t nil nil) (font-lock-variable-name-face "Salmon" nil nil nil nil) ) )
;; This is to assign the colors, etc. for the fonts used by font-lock ;; in emacs 20.x versions and beyond. ;; ;;(modify-face FACE FOREGROUND BACKGROUND STIPPLE BOLD-P ;; ITALIC-P UNDERLINE-P &optional FRAME) ;; (modify-face font-lock-comment-face "Cyan" nil nil nil nil nil) (modify-face font-lock-function-name-face "SpringGreen" nil nil nil nil nil) (modify-face font-lock-keyword-face "Gold" nil nil nil nil nil) (modify-face font-lock-string-face "Khaki" nil nil t nil nil) (modify-face font-lock-reference-face "Aquamarine" nil nil t nil nil) (modify-face font-lock-type-face "LightBlue" nil nil t nil nil) (modify-face font-lock-warning-face "Violet" nil nil nil nil nil) (modify-face font-lock-builtin-face "PaleGreen" nil nil t nil nil) (modify-face font-lock-variable-name-face "Salmon" nil nil nil nil nil)
Special thanks to Simon Marshall and Ron Forrester for enhancing the previous version.
This doesn't actually do the best optimization job. If there is enough call for it, m3font.el can be hand optimized, but with a fast enough machine, you probably won't notice the difference.
![]() | Top | Language Definition | Projects | Links | Goodies | M3 Home Page | FAQ | ![]() |
This page has passed the W3C Wilbur Validation Test available from WebTechs!