Dear Sir,
I was trying to highlight (with colours) some keywords in my derived mode
called "runin-mode".
Following is my .emacs file.
*****
(define-derived-mode runin-mode text-mode "runin")
(setq auto-mode-alist (cons '("\\.runin$" .runin-mode)
auto-mode-alist))
(defvar runin-font-lock-keywords
(eval-when-compile
(list
'("\\<\\(go\\|spawn\\)\\>[ \t]*\\(\\sw+\\)?" (1
font-lock-keyword-face) (2
font-lock-function-name-facenil t))
(concat "\\<\\ ("
"comment\\|cmt\\|run\\|end\\|clo\\|cls"
"\\)\\>")
But I am unable to do it. Even xemacs is not recognising the new derived
mode "runin-mode". Could you please help me out.
Regards
Phani
====
Off: 040 - 23112296 (Direct)
040 - 23110357 Ext:252
Res: 040 - 27061857
Show replies by date