From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geralt Newsgroups: gmane.emacs.help Subject: customizing syntax highlighting of variable and function usage in C and C++ mode Date: Tue, 3 Feb 2009 16:38:40 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233725329 22968 80.91.229.12 (4 Feb 2009 05:28:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2009 05:28:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 04 06:30:03 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LUaKn-0005w4-2B for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Feb 2009 06:30:01 +0100 Original-Received: from localhost ([127.0.0.1]:36407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUaJU-0001d3-8F for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Feb 2009 00:28:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUNOD-00054l-Ln for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 10:40:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUNOB-00052n-JN for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 10:40:40 -0500 Original-Received: from [199.232.76.173] (port=34036 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUNOB-00052c-DT for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 10:40:39 -0500 Original-Received: from mail-fx0-f10.google.com ([209.85.220.10]:59585) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUNOA-00087k-K5 for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 10:40:39 -0500 Original-Received: by fxm3 with SMTP id 3so1860372fxm.18 for ; Tue, 03 Feb 2009 07:40:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=YuCGRZ4+YEmwdIBhJFJ2uFzQv9lWY3kp4T+AbUI6o5I=; b=XpRV/UP3xD+F82VpHIp7QLGR1/vOVgsZT8nqRXTcbQ7h3u5W29AIViOwo2zqt2+Dqp S5HcDBI12FQP3tI7P3Bz4l7OzxSdAg6hhuyHRi6oqyhEEC7yCzBG+aqj5GJF4imqGmF4 FCmCpqY4hTmVIMfcQDfYZS+BjEQJFUjA+MgT0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=jqQ1dvpQSdFLQmfYPwu4c0JCLmCY5J6pZRTjfa8TyQPTbS8WxWoMeNlcqMY3YXc3RN WE/SR185858l5FCHFtcpzlcJj51yXrLD7HlgSx5aPn1oR2IPyuZGebSCaGKqDGuadguX uk/R5epq6GTUhTQJ0p1m4bc65EkGNXPfMg1ss= Original-Received: by 10.180.221.13 with SMTP id t13mr827460bkg.55.1233675520542; Tue, 03 Feb 2009 07:38:40 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 04 Feb 2009 00:28:13 -0500 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:61898 Archived-At: Hi, is it possible to customize the syntax highlighting of function calls and the usage of variables in C and C++ mode? By setting (font-lock-variable-name-face ((t (:foreground "#eeeeec" :italic t)))) (font-lock-function-name-face ((t (:foreground "#edd400" :bold t :underline t)))) in my color-theme only the declarations/definitions are affected. In shell-script-mode all variables are affected (i.e. in every context), but functions not at all (i.e. not even in their definitons). Thanks.