From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Auctex like c++ mode Date: Sat, 14 Feb 2015 08:21:31 +0100 Message-ID: <87twyp2c1w.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423898529 1691 80.91.229.3 (14 Feb 2015 07:22:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2015 07:22:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Glen Stark Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 08:21:59 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YMX38-0006wu-BR for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 08:21:58 +0100 Original-Received: from localhost ([::1]:58995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMX37-0004vU-Pu for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 02:21:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMX2t-0004vB-6y for help-gnu-emacs@gnu.org; Sat, 14 Feb 2015 02:21:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMX2o-0003h0-72 for help-gnu-emacs@gnu.org; Sat, 14 Feb 2015 02:21:43 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMX2o-0003gu-3G for help-gnu-emacs@gnu.org; Sat, 14 Feb 2015 02:21:38 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 616D720814 for ; Sat, 14 Feb 2015 02:21:37 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sat, 14 Feb 2015 02:21:37 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:cc:subject:references :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=Hv8juFS49ro3EyLtufG3VQ9mxaU=; b=tz5+s0b5hKgpe95UCFZb USWYLMmnbS9VJqzirSiA3lJLHAN1qYtoR0pwLxuHjmAOWqEJDAj//4OSSKv9P0xM +Dtw7Iw2aEUunr+sRKrYYJE4e0l8C63AWye+HDHtQTN5QCIX21pgUphr3hVJMHLe uwpGR75m1rNzTFLTlbIWJxY= X-Sasl-enc: eD/2kQ8B+lbR+7un9g+dNGz5yYuewxaAi236sxS8/Bjw 1423898497 Original-Received: from thinkpad-t440p (unknown [2.163.0.174]) by mail.messagingengine.com (Postfix) with ESMTPA id A09C8C0029D; Sat, 14 Feb 2015 02:21:36 -0500 (EST) Mail-Followup-To: Glen Stark , help-gnu-emacs@gnu.org In-Reply-To: (Glen Stark's message of "Fri, 13 Feb 2015 22:10:22 GMT") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.28 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102712 Archived-At: Glen Stark writes: > I've always thought it would be really nifty to do the same thing for > the signature part of function definitions in c-modes. In case I > screwed up the vocabulary, what I mean is this: > > void i_want_this_big(maybe the params too, i'm easy) > { > /// I want the body normal > } > > I also thing it would be really sexy if nested braces and parenthesis > could be distinguished by varying face sizes. Maybe once I saw this > in practice I'd change my mind, but I'd like to try it out. > > It seems to me that this should be easy enough to do, but I don't know > how to do it, and I haven't been able to find any instructions or > theme or anything online... perhaps because I'm not searching for the > right terms. Move point on the function name, do `M-x customize-face RET'. It'll automatically offer `font-lock-function-name-face' which is the face used by the text at point. Confirm with RET and you're put in a *Customize* buffer where you can increase the Height face attribute to, e.g., 1.2 to make function names one fifth larger than the other text. Parens and braces don't seem to be fontified with custom faces, so that's not easy to change. But you can play with customizing other faces. Just move point to text that's highlighted and do `M-x customize-face', e.g., variables, types, keywords, strings, comments... Bye, Tassilo