From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helfer Thomas Newsgroups: gmane.emacs.help Subject: How to make a new mode based on c++-mode Date: Fri, 01 Dec 2006 22:15:28 +0100 Message-ID: <1165007728.7869.1.camel@portableAsus> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165007756 3666 80.91.229.2 (1 Dec 2006 21:15:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Dec 2006 21:15:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 01 22:15:53 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GqFjW-00012b-3C for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Dec 2006 22:15:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqFjV-0002xs-Fb for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Dec 2006 16:15:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GqFjH-0002vz-RK for help-gnu-emacs@gnu.org; Fri, 01 Dec 2006 16:15:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GqFjG-0002tZ-61 for help-gnu-emacs@gnu.org; Fri, 01 Dec 2006 16:15:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqFjF-0002tP-R9 for help-gnu-emacs@gnu.org; Fri, 01 Dec 2006 16:15:29 -0500 Original-Received: from [212.27.42.29] (helo=smtp3-g19.free.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GqFjF-0007VO-M0 for help-gnu-emacs@gnu.org; Fri, 01 Dec 2006 16:15:29 -0500 Original-Received: from [192.168.0.3] (lns-bzn-27-82-248-40-3.adsl.proxad.net [82.248.40.3]) by smtp3-g19.free.fr (Postfix) with ESMTP id DF92A4A22B for ; Fri, 1 Dec 2006 22:15:28 +0100 (CET) Original-To: help-gnu-emacs@gnu.org X-Mailer: Evolution 2.8.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39184 Archived-At: following awk.el i have tried the following : ;;; -*-emacs-lisp-*- ;;; castfront.el --- ELisp package for making castfront related stuff easier. (provide 'castfront) (defconst castfront-keywords (list (list "\\(@\\(Coef\\)\\)\\>" '(0 font-lock-warning-face prepend)) )) ;;;###autoload (define-derived-mode castfront-mode c++-mode "CASTFRONT" "Major mode for editing castfront code." (setq font-lock-defaults '(castfront-keywords))) This make @Coef to be highlighted by not standard c++-keywords. What I am doing wrong ? Sincerly, Helfer Thomas