-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtkb-formatting.el
54 lines (44 loc) · 1.94 KB
/
tkb-formatting.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; tkb-formatting.el -- Formating options: faces, fonts, character sets, etc.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; $ProjectHeader: tkbconfig 0.5 Tue, 09 May 2000 20:50:39 -0400 tkb $
;;; $Id: tkb-formatting.el 1.2 Tue, 09 May 2000 20:50:39 -0400 tkb $
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Faces
;; When I don't actually have a bold italic...
(unless (face-font 'bold-italic)
(set-face-foreground 'bold-italic "red"))
;; ...and when I don't actually have an italic.
(unless (face-font 'italic)
(set-face-foreground 'italic "blue"))
;; Or should I use this?
(defun tkb-modify-faces ()
(interactive)
(when (or (not (face-font 'bold-italic))
(not (string-match "^[oi]"
(aref (x-decompose-font-name
(face-font 'bold-italic)) 3))))
(set-face-underline-p 'bold-italic t))
(when (or (not (face-font 'italic))
(not (string-match
"^[oi]"
(aref (x-decompose-font-name (face-font 'italic)) 3))))
(set-face-underline-p 'italic t)))
;(set-face-background 'bold "white")
(make-face 'doc-face)
(set-face-foreground 'doc-face "darkgreen")
(make-face 'string-face)
(set-face-foreground 'string-face "blue")
(copy-face 'italic 'comment-face)
(set-face-foreground 'comment-face "darkorchid")
;; yellowgreen, olivedrab, darkkhaki, goldenrod, darkgoldenrod, rosybrown,
;; indianred, saddlebrown(too close to black), sienna, peru, sandybrown,
;; chocolate, firebrick, orange, coral, hotpink, deeppink, maroon, violetred,
;; magenta, darkorchid, blueviolet, or scheme, lightsteelblue3, darkgoldenrod3,
;; purple
(load-library "font-lock")
(setq font-lock-maximum-decoration t)
(global-font-lock-mode 1)
;; Turn off multi-byte characters.
; (setq-default enable-multibyte-characters nil)
;;; end of tkb-formatting.el