- 论坛徽章:
- 0
|
font.el
这个基本上就没动过,Steve Youngs的版本
去掉了一些不兼容的脚本,所以具体的请看原版。
;;; -*- Mode: Emacs-Lisp -*-
;:* $Id: fonts-sy.el,v 1.1 2003-10-17 23:36:42+10 steve Exp steve $
;:*=======================
;:* ISO-8859-1 support
(require 'x-compose)
(global-set-key "\C-cm" 'compose-map)
;:*=======================
;:* Turn on Lazy-(lock|shot)
;; Lazy-lock
; (require 'lazy-lock)
; (if (eq emacs-minor-version 5)
; (setq font-lock-support-mode 'lazy-lock-mode)
; (add-hook 'font-lock-mode-hook 'turn-on-lazy-lock))
; (setq lazy-lock-stealth-time 15)
;; Lazy-shot (my preference)
(add-hook 'font-lock-mode-hook 'turn-on-lazy-shot)
;:*=======================
;:* describe-face-at-point, a function to find out which face is which
(defun describe-face-at-point ()
"Return face used at point."
(interactive)
(hyper-describe-face (get-char-property (point) 'face)))
;:*=======================
;:* Alex Schroeder's color-theme
;;
;; A very nice package, get it from:
;; <http://www.emacswiki.org/cgi-bin/wiki.pl?ColorTheme>
(require 'color-theme)
(autoload 'color-theme-install "color-theme")
(defun my-colour-theme ()
"Colour theme by Steve Youngs, created 2001-09-01."
(interactive)
(color-theme-install
'(my-colour-theme
;; Misc basic stuff.
((background-color . "black")
(frame-background-mode . dark)
(background-toolbar-color . "#cccccccccccc")
(border-color . "#000000000000")
(bottom-toolbar-shadow-color . "#7a7a7a7a7a7a")
(cursor-color . "red3")
(foreground-color . "white")
(top-toolbar-shadow-color . "#f5f5f5f5f5f5"))
((buffers-tab-face . buffers-tab)
(cperl-here-face . font-lock-string-face)
(cperl-invalid-face quote underline)
(cperl-pod-face . font-lock-comment-face)
(cperl-pod-head-face . font-lock-variable-name-face)
(paren-match-face . paren-face-match)
(paren-mismatch-face . paren-face-mismatch)
(paren-no-match-face . paren-face-no-match)
(smiley-mouse-face . highlight)
(vc-mode-face . highlight))
(default ((t (:size "12pt" :family "bitstream vera sans mono" :background "black" :foreground "gray90" ))))
(about-headline-face ((t (:bold t :foreground "HotPink"))))
(about-link-face ((t (:bold t :foreground "Yellow"))))
(blue ((t (:foreground "blue"))))
(bold ((t (:bold t))))
(border-glyph ((t (nil))))
(buffers-tab ((t (:bold t :background "grey65" :foreground "black"))))
(green ((t (:foreground "green"))))
(gui-button-face ((t (:background "grey75" :foreground "black"))))
(gui-element ((t (nil))))
(highlight ((t (:background "darkseagreen2" :foreground "yellow3"))))
(italic ((t (:italic t :size "14pt"))))
(bold-italic ((t (:italic t :bold t))))
(left-margin ((t (nil))))
(list-mode-item-selected ((t (:background "gray68" :foreground "white"))))
(pointer ((t (:foreground "green3"))))
(primary-selection ((t (:background "gray65"))))
(red ((t (:foreground "red"))))
(right-margin ((t (nil))))
(secondary-selection ((t (:background "paleturquoise"))))
(text-cursor ((t (:background "red3" :foreground "black"))))
(toolbar ((t (nil))))
(underline ((t (:underline t))))
(vertical-divider ((t (nil))))
(yellow ((t (:foreground "yellow"))))
;; Calendar/Diary.
(calendar-today-face ((t (:bold t :foreground "HotPink"))))
(diary-face ((t (:foreground "Cyan"))))
(holiday-face ((t ( :foreground "Yellow"))))
;; cperl-mode.
(cperl-array-face ((t (:bold t :foreground "Blue"))))
(cperl-hash-face ((t (:bold t :foreground "Red"))))
(cperl-nonoverridable-face ((t (:foreground "chartreuse3"))))
;; Custom
(custom-group-tag-face ((t (:foreground "Yellow"))))
(custom-state-face ((t (:foreground "Cyan"))))
(custom-variable-tag-face ((t (:foreground "LawnGreen"))))
;; PCL-CVS
(cvs-filename-face ((t (:bold t :foreground "Yellow"))))
(cvs-header-face ((t (:foreground "Green"))))
(cvs-msg-face ((t ( :foreground "Cyan"))))
;; dictionary
(dictionary-word-entry-face ((t (:italic nil :foreground "Green"))))
(dictionary-reference-face ((t (:foreground "Yellow"))))
;; diff-mode
(diff-added-face ((t ( :foreground "LawnGreen"))))
(diff-changed-face ((t ( :foreground "Cyan"))))
(diff-file-header-face
((t ( :foreground "BlanchedAlmond"))))
(diff-header-face ((t ( :foreground "BlanchedAlmond"))))
(diff-hunk-header-face ((t ( :foreground "Yellow"))))
(diff-index-face ((t ( :foreground "Orange"))))
(diff-removed-face ((t ( :foreground "HotPink"))))
;; Dired.
(dired-face-boring ((t (:foreground "Gray65"))))
(dired-face-directory ((t (:bold t))))
(dired-face-executable ((t (:foreground "SeaGreen"))))
(dired-face-flagged ((t (:background "LightSlateGray"))))
(dired-face-header ((t (:background "grey75" :foreground "black"))))
(dired-face-marked ((t (:background "PaleVioletRed"))))
(dired-face-permissions ((t (:background "grey75" :foreground "black"))))
(dired-face-setuid ((t (:foreground "Red"))))
(dired-face-socket ((t (:foreground "magenta"))))
(dired-face-symlink ((t (:foreground "cyan"))))
;; Balloon Help.
(display-time-mail-balloon-enhance-face ((t (:background "orange"))))
(display-time-mail-balloon-gnus-group-face ((t (:foreground "blue"))))
(display-time-time-balloon-face ((t (:foreground "red"))))
;; Ediff
(ediff-current-diff-face-A
((t (:background "pale green" :foreground "firebrick"))))
(ediff-current-diff-face-Ancestor
((t (:background "VioletRed" :foreground "Black"))))
(ediff-current-diff-face-B
((t (:background "Yellow" :foreground "DarkOrchid"))))
(ediff-current-diff-face-C ((t (:background "Pink" :foreground "Navy"))))
(ediff-even-diff-face-A ((t (:background "light grey" :foreground "Black"))))
(ediff-even-diff-face-Ancestor ((t (:background "Grey" :foreground "White"))))
(ediff-even-diff-face-B ((t (:background "Grey" :foreground "White"))))
(ediff-even-diff-face-C ((t (:background "light grey" :foreground "Black"))))
(ediff-fine-diff-face-A ((t (:background "sky blue" :foreground "Navy"))))
(ediff-fine-diff-face-Ancestor
((t (:background "Green" :foreground "Black"))))
(ediff-fine-diff-face-B ((t (:background "cyan" :foreground "Black"))))
(ediff-fine-diff-face-C ((t (:background "Turquoise" :foreground "Black"))))
(ediff-odd-diff-face-A ((t (:background "Grey" :foreground "White"))))
(ediff-odd-diff-face-Ancestor
((t (:background "light grey" :foreground "Black"))))
(ediff-odd-diff-face-B ((t (:background "light grey" :foreground "Black"))))
(ediff-odd-diff-face-C ((t (:background "Grey" :foreground "White"))))
;; Eicq.
(eicq-face-away ((t (:foreground "red"))))
(eicq-face-dnd ((t (:foreground "lightblue"))))
(eicq-face-ffc ((t (:foreground "yellow"))))
(eicq-face-log-read ((t (:foreground "turquoise"))))
(eicq-face-log-unread ((t (:foreground "red"))))
(eicq-face-na ((t (:foreground "pink"))))
(eicq-face-occ ((t (:foreground "orange"))))
(eicq-face-offline ((t (:foreground "grey"))))
(eicq-face-online ((t (:foreground "green"))))
(eicq-face-selected ((t (:background "yellow" :foreground "darkblue"))))
(eicq-wharf-default-face ((t (:foreground "Green" :size "10pt"))))
;; LaTeX
(font-latex-bold-face ((t (:foreground "brown"))))
(font-latex-italic-face ((t (:foreground "lightcoral"))))
(font-latex-math-face ((t (:foreground "dodgerblue"))))
(font-latex-sedate-face ((t (:foreground "gray51"))))
(font-latex-string-face ((t (:foreground "green3"))))
(font-latex-warning-face ((t (:foreground "red"))))
(font-lock-comment-face ((t (:foreground "cyan"))))
;; Font Lock
(font-lock-doc-string-face ((t (:foreground "LimeGreen"))))
(font-lock-function-name-face ((t (:foreground "yellow" :bold t))))
(font-lock-keyword-face ((t (:foreground "Salmon"))))
(font-lock-preprocessor-face ((t (:foreground "magenta3"))))
(font-lock-reference-face ((t (:foreground "steelblue"))))
(font-lock-string-face ((t (:foreground "green3"))))
(font-lock-type-face ((t (:foreground "dodgerblue"))))
(font-lock-variable-name-face ((t (:foreground "PeachPuff"))))
(font-lock-warning-face ((t (:bold t :foreground "Red"))))
;; Gnus/Message
(gnus-cite-attribution-face ((t (:foreground "hotpink"))))
(gnus-cite-face-1 ((t (:foreground "LawnGreen"))))
(gnus-cite-face-10 ((t (:foreground "magenta"))))
(gnus-cite-face-11 ((t (:foreground "MediumBlue"))))
(gnus-cite-face-2 ((t (:foreground "Cyan"))))
(gnus-cite-face-3 ((t (:foreground "DarkCyan"))))
(gnus-cite-face-4 ((t (:foreground "Salmon"))))
(gnus-cite-face-5 ((t (:foreground "DarkSalmon"))))
(gnus-cite-face-6 ((t (:foreground "LavenderBlush"))))
(gnus-cite-face-7 ((t (:foreground "LawnGreen"))))
(gnus-cite-face-8 ((t (:foreground "LightSkyBlue"))))
(gnus-cite-face-9 ((t (:foreground "LightSeaGreen"))))
(gnus-emphasis-bold ((t (:bold t))))
(gnus-emphasis-bold-italic ((t (:italic t :bold t))))
(gnus-emphasis-highlight-words ((t (:foreground "yellow"))))
(gnus-emphasis-italic ((t (:italic t))))
(gnus-emphasis-underline ((t (:underline t))))
(gnus-emphasis-underline-bold ((t (:underline t :bold t))))
(gnus-emphasis-underline-bold-italic ((t (:underline t :italic t :bold t))))
(gnus-emphasis-underline-italic ((t (:underline t :italic t))))
(gnus-group-mail-1-empty-face ((t (:foreground "DeepPink3"))))
(gnus-group-mail-1-face ((t (:bold t :foreground "DeepPink3"))))
(gnus-group-mail-2-empty-face ((t (:foreground "HotPink3"))))
(gnus-group-mail-2-face ((t (:bold t :foreground "HotPink3"))))
(gnus-group-mail-3-empty-face ((t (:foreground "BlanchedAlmond"))))
(gnus-group-mail-3-face ((t (:foreground "Yellow"))))
(gnus-group-mail-low-empty-face ((t (:foreground "DeepPink4"))))
(gnus-group-mail-low-face ((t (:bold t :foreground "DeepPink4"))))
(gnus-group-news-1-empty-face ((t (:foreground "BlanchedAlmond"))))
(gnus-group-news-1-face ((t (:foreground "LawnGreen"))))
(gnus-group-news-2-empty-face ((t (:foreground "CadetBlue4"))))
(gnus-group-news-2-face ((t (:bold t :foreground "CadetBlue4"))))
(gnus-group-news-3-empty-face ((t (nil))))
(gnus-group-news-3-face ((t (:foreground "HotPink"))))
(gnus-group-news-4-empty-face ((t (nil))))
(gnus-group-news-4-face ((t (:bold t))))
(gnus-group-news-5-empty-face ((t (nil))))
(gnus-group-news-5-face ((t (:bold t))))
(gnus-group-news-6-empty-face ((t (nil))))
(gnus-group-news-6-face ((t (:bold t))))
(gnus-group-news-low-empty-face ((t (:foreground "DarkGreen"))))
(gnus-group-news-low-face ((t (:bold t :foreground "DarkGreen"))))
(gnus-header-content-face ((t (:foreground "LightGreen"))))
(gnus-header-from-face ((t (:foreground "Cyan"))))
(gnus-header-name-face ((t (:foreground "hotpink"))))
(gnus-header-newsgroups-face ((t (:bold t :foreground "yellow"))))
(gnus-header-subject-face ((t (:bold t :foreground "SkyBlue"))))
(gnus-picon-face ((t (:background "white" :foreground "white"))))
(gnus-picon-xbm-face ((t (:background "white" :foreground "white"))))
(gnus-signature-face ((t (:bold t :foreground "BlanchedAlmond"))))
(gnus-summary-cancelled-face ((t (:foreground "yellow"))))
(gnus-summary-high-ancient-face ((t (:bold t :foreground "RoyalBlue"))))
(gnus-summary-high-read-face ((t (:foreground "SlateGrey"))))
(gnus-summary-high-ticked-face ((t (:bold t :foreground "firebrick"))))
(gnus-summary-high-unread-face ((t (:bold t :foreground "HotPink"))))
(gnus-summary-low-ancient-face ((t (:italic t :foreground "RoyalBlue"))))
(gnus-summary-low-read-face ((t (:foreground "BlueViolet"))))
(gnus-summary-low-ticked-face ((t (:italic t :foreground "firebrick"))))
(gnus-summary-low-unread-face ((t ( :foreground "coral"))))
(gnus-summary-normal-ancient-face ((t (:foreground "RoyalBlue"))))
(gnus-summary-normal-read-face ((t (:foreground "SlateGrey"))))
(gnus-summary-normal-ticked-face ((t (:foreground "firebrick"))))
(gnus-summary-normal-unread-face ((t (:foreground "white"))))
(gnus-summary-selected-face ((t (:underline t :foreground "Cyan"))))
(gnus-x-face ((t (:background "white" :foreground "black"))))
(message-cited-text-face ((t (:foreground "Cyan"))))
(message-header-cc-face ((t (:foreground "LawnGreen"))))
(message-header-name-face ((t (:foreground "hotpink"))))
(message-header-newsgroups-face ((t (:bold t :foreground "yellow"))))
(message-header-other-face ((t (:foreground "Green"))))
(message-header-subject-face ((t (:bold t :foreground "SkyBlue"))))
(message-header-to-face ((t (:foreground "BlanchedAlmond"))))
(message-header-xheader-face ((t (:foreground "blue"))))
(message-mml-face ((t (:foreground "ForestGreen"))))
(message-separator-face ((t (:bold t :foreground "yellow"))))
;; MMM-mode
(mmm-default-submode-face ((t (:background "black"))))
;; Hyper-apropos.
(hyper-apropos-documentation ((t (:foreground "white"))))
(hyper-apropos-hyperlink ((t (:foreground "yellow"))))
;; ibuffer
(ibuffer-deletion-face ((t (:foreground "BlanchedAlmond"))))
(ibuffer-dired-buffer-face ((t (:foreground "cyan"))))
(ibuffer-help-buffer-face ((t (:foreground "Yellow"))))
(ibuffer-hidden-buffer-face ((t (:foreground "DarkMagenta"))))
(ibuffer-marked-face ((t (:foreground "green"))))
(ibuffer-occur-match-face ((t (:bold t :foreground "Red"))))
(ibuffer-read-only-buffer-face ((t (:foreground "hotpink"))))
(ibuffer-special-buffer-face ((t (:foreground "skyblue"))))
;; Info
(info-node ((t (:bold t :foreground "yellow"))))
(info-xref ((t (:bold t :foreground "BlanchedAlmond"))))
;; Isearch
(isearch ((t (:background "yellow" :foreground "red"))))
(isearch-secondary ((t (:foreground "red3"))))
;; Liece
(liece-broadcast-face ((t (:foreground "cyan" :italic t :size "14pt"))))
(liece-change-face ((t (:foreground "BlanchedAlmond" :bold t))))
(liece-client-face ((t (:foreground "cornflowerblue" :bold t))))
(liece-dcc-face ((t (:foreground "yellow" :bold t))))
(liece-error-face
((t (:foreground "HotPink" :bold t :italic t :size "14pt"))))
(liece-info-face ((t (:foreground "GreenYellow" :bold t))))
(liece-notice-face ((t (:foreground "gold" :bold t))))
(liece-prefix-face ((t (:foreground "cyan" :bold t))))
(liece-quoted-inverse-face ((t (:foreground "red"))))
(liece-timestamp-face ((t (:foreground "lightblue" :bold t))))
(liece-wallops-face ((t (:foreground "coral" :bold t))))
;; Man
(man-italic ((t (:italic t :size "14pt" :foreground "BlanchedAlmond"))))
(man-heading ((t (:bold t :foreground "yellow"))))
(man-xref ((t (:underline t :foreground "hotpink"))))
;; Modeline
(modeline ((t (:background "Gray80" :foreground "Black"))))
(modeline-buffer-id ((t (:background "Gray80" :foreground "blue4"))))
(modeline-mousable ((t (:background "Gray80" :foreground "firebrick"))))
(modeline-mousable-minor-mode
((t (:background "Gray80" :foreground "green4"))))
;; Paren
(paren-blink-off ((t (:foreground "black"))))
(paren-face-match ((t (:background "turquoise"))))
(paren-face-mismatch ((t (:background "purple" :foreground "white"))))
(paren-face-no-match ((t (:background "yellow" :foreground "black"))))
(paren-match ((t (:background "darkseagreen2" :foreground "yellow3"))))
(paren-mismatch ((t (:background "DeepPink" :foreground "white"))))
;; Shell
(shell-option-face ((t (:foreground "Cyan"))))
(shell-output-2-face ((t (:foreground "LawnGreen"))))
(shell-output-3-face ((t (:foreground "HotPink"))))
(shell-output-face ((t (:foreground "BlanchedAlmond"))))
(shell-prompt-face ((t (:foreground "Yellow"))))
;; Speedbar
(speedbar-button-face ((t (:foreground "green4"))))
(speedbar-directory-face ((t (:foreground "BlanchedAlmond"))))
(speedbar-file-face ((t (:foreground "cyan4"))))
(speedbar-highlight-face ((t (:background "green"))))
(speedbar-selected-face ((t (:underline t :foreground "red"))))
(speedbar-tag-face ((t (:foreground "brown"))))
;; Widget
(widget ((t (nil))))
(widget-button-face ((t (:bold t))))
(widget-button-pressed-face ((t (:foreground "red"))))
(widget-documentation-face ((t (:foreground "BlanchedAlmond"))))
(widget-field-face ((t (:background "Grey30" :foreground "Yellow"))))
(widget-inactive-face ((t (:foreground "dim gray"))))
(zmacs-region ((t (:background "gray30" :foreground "yellow"))))
;; mh-e
(mh-folder-cur-msg-face ((t (:foreground "black" :background "white"))))
(mh-folder-date-face ((t (:foreground "snow4"))))
(mh-folder-followup-face ((t (:foreground "blue3"))))
(mh-folder-msg-number-face ((t (:foreground "red"))))
(mh-folder-subject-face ((t (:foreground "cyan"))))
(mh-index-folder-face ((t (:foreground "blanched almond"))))
(mh-show-from-face ((t (:foreground "cyan"))))
(mh-show-to-face ((t (:foreground "light green"))))
(mh-show-xface-face ((t (:foreground "black" :background "white")))))))
;:*=======================
;:* Use a sexy background pixmap.
;(set-face-background-pixmap 'default
; [xpm :file "~/documents/pictures/marble.xpm"])
;; Highlight 'FIXME:' and '--SY' in comments. So far, just lisp mode.
(add-to-list 'lisp-font-lock-keywords-2
'("^;;;?.*\\(FIXME:\\|--SY\\.?$\\)" 1 font-lock-warning-face prepend))
(font-lock-mode)
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
(message "fonts initialised")
[[i] 本帖最后由 hadeshuang 于 2006-6-25 01:35 编辑 [/i]] |
|