[ESS] Font
Stephen Eglen
S.J.Eglen at damtp.cam.ac.uk
Thu Jan 21 09:11:26 CET 2010
> > Does anyone know which the font in the inferior-ess buffer displays
> > prompts such as:
> >
> > "Save workspace image? [y/n/c]: " when exiting ess
> >
> > and
> >
> > "Selection: " when using options(error=recover)
> >
> > I'd like to change it. For example, putting the following line in
> > ~/.emacs will change the color of function names to yellow:
> > (set-face-foreground 'font-lock-function-name-face "yellow"). I would
> > like to do something similar for the font referenced above but I
> > haven't figured out what it's called.
> >
>
> Place you point at the keyword and M-: (face-at-point), this will show
> the face at the cursor.
> You can also customize all your fonts interactively from
> options>customize emacs>faces matching regexp
In addition to what Vitalie said, you can also do 'C-u C-x =' to get a
detailed description of what is at point. For 'Selection', I see
----------------------------------------------------------------------
character: S (83, #o123, #x53)
preferred charset: ascii (ASCII (ISO646 IRV))
code point: 0x53
syntax: w which means: word
category: .:Base, a:ASCII, l:Latin, r:Roman
buffer code: #x53
file code: #x53 (encoded by coding system utf-8-unix)
display: by this font (glyph code)
nil:-apple-Monaco-medium-normal-normal-*-18-*-*-*-m-0-iso10646-1 (#x36)
Character code properties: customize what to show
name: LATIN CAPITAL LETTER S
general-category: Lu (Letter, Uppercase)
There is an overlay here:
From 919 to 930
font-lock-face comint-highlight-prompt
There are text properties here:
fontified t
----------------------------------------------------------------------
and then M-x describe-face RET comint-highlight-prompt RET shows you the
details of the face, which you can then customize.
Stephen
More information about the ESS-help
mailing list