all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Glen Stark <mail@glenstark.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Auctex like c++ mode
Date: Sat, 14 Feb 2015 08:21:31 +0100	[thread overview]
Message-ID: <87twyp2c1w.fsf@gnu.org> (raw)
In-Reply-To: <iDuDw.1045318$BB2.415030@fx35.am4> (Glen Stark's message of "Fri, 13 Feb 2015 22:10:22 GMT")

Glen Stark <mail@glenstark.net> 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



      reply	other threads:[~2015-02-14  7:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-13 22:10 Auctex like c++ mode Glen Stark
2015-02-14  7:21 ` Tassilo Horn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87twyp2c1w.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mail@glenstark.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.