branch: externals/rec-mode
commit d97175a377a22698828b1c10292874202baf62a9
Author: Jose E. Marchesi <[email protected]>
Commit: Antoine Kalmbach <[email protected]>

    rec-mode: define faces and use them
---
 etc/rec-mode.el | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/etc/rec-mode.el b/etc/rec-mode.el
index b808353..47eb067 100644
--- a/etc/rec-mode.el
+++ b/etc/rec-mode.el
@@ -72,6 +72,10 @@ hidden by default in navigation mode.")
 (defvar rec-recfix "recfix"
   "Name of the 'recfix' utility from the GNU recutils.")
 
+(defface rec-field-name-face '((t :weight bold)) "" :group 'rec-mode)
+(defface rec-keyword-face '((t :weight bold)) "" :group 'rec-mode)
+(defface rec-continuation-line-face '((t :weight bold)) "" :group 'rec-mode)
+
 ;;;; Variables and constants that the user does not want to touch (really!)
 
 (defconst rec-mode-version "1.5"
@@ -139,9 +143,9 @@ hidden by default in navigation mode.")
   "Syntax table used in rec-mode")
 
 (defvar rec-font-lock-keywords
-`((,(concat "^" rec-keyword-prefix "[a-zA-Z0-9_]+:") . font-lock-keyword-face)
-  (,rec-field-name-re . font-lock-variable-name-face)
-  ("^\\+" . font-lock-constant-face))
+`((,(concat "^" rec-keyword-prefix "[a-zA-Z0-9_]+:") . rec-field-name-face)
+  (,rec-field-name-re . rec-keyword-face)
+  ("^\\+" . rec-continuation-line-face))
 "Font lock keywords used in rec-mode")
 
 (defvar rec-mode-edit-map

Reply via email to