Questions tagged [emacs-faces]

A face in GNU Emacs is a text style.

A face can have various attributes, such as foreground and background colors, font, height, and weight. Faces are applied as text properties to characters in a string or buffer, or as overlay properties to buffer positions. Face attribute values can be inherited from one or more faces by another face.

95 questions
1
vote
2 answers

Emacs text-mode highlighting

Is there a way to get a word to be rendered with a different face in text mode?
Nathaniel Flath
  • 15,477
  • 19
  • 69
  • 94
1
vote
1 answer

How to customize face for gnus-group-topic emacs24?

I'm trying to set the color for the topic name in gnus-group-mode. I've tried to look up the face name so I can set the color property, but I get default or ascii character as the face name depending on what letter of the topic i'm looking…
bobarillo
  • 173
  • 3
  • 10
1
vote
1 answer

EMACS, Function call highlight

(EMACS 24.2 ) I need to highliight function call. I found this on internet (add-hook 'c-mode-hook (lambda () (font-lock-add-keywords nil '( ("\\<\\(\\sw+\\) ?(" . 'font-lock-function-name-face))t))) It works but it highlight also the…
Mario Giovinazzo
  • 431
  • 2
  • 12
1
vote
0 answers

Can't use bold face on 2nd level outline in Emacs org-mode

I can't get bold formatting to work on 2nd level outlines in org-mode. E.g. the following * First level * First *level* ** Second level ** Second *level* produces: First level First level Second level Second *level* (i.e. the last item is not…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
1
vote
1 answer

How to set emacs eshell default face?

When I'm running eshell (or shell) in emacs, I would like to have the default face be a different font (like Courrier) so that eshell looks more like a "normal" shell. Looking through the Faces for emacs I see several eshell specific faces (for…
Nick Loadholtes
  • 188
  • 1
  • 12
0
votes
2 answers

How to change the face of a long line without affecting other font-lock customizations in Emacs?

I have some code that I borrowed from a long while ago that sets a long-line face when the line is too long: (add-hook 'font-lock-mode-hook (function (lambda () (setq font-lock-keywords …
RealityMonster
  • 1,881
  • 2
  • 12
  • 11
0
votes
1 answer

Changing a custom set face to display with those settings in certian emacs mode (text-mode, LaTeX-mode, etc..)

I had a custom-set-faces that I had used in an emacs startup file that was especially for when I launched latex files but I'm in the process of merging and updating my .emacs file so I don't launch a seperate start-up process for the latex file. I…
J Spen
  • 2,614
  • 4
  • 26
  • 41
0
votes
3 answers

How to set face for keywords which occur in first line?

How do I set face for specified keywords but only ones in first line? For example having this file --- cut here --- hello world <-- this "hello" should have face set hello world <-- while this "hello" should not --- cut here --- only first…
Łukasz Milewski
  • 1,897
  • 13
  • 14
0
votes
1 answer

How can I use a different ttf fonts for certain utf-8 characters in emacs?

I want to use SourceCodePro as my default font but it doesn't cover persian characters which are in the scope of for example #x0600 untill #x06FF. I tried somthing like this (set-fontset-font t 'ascii "Source Code…
0
votes
1 answer

Defining second font-lock-comment-face in Emacs

Is it possible to define a second comment face and comment-start indicator in Emacs such that the second comment highlight appears even if called from within the first comment-face? I currently have a custom Emacs mode with the following: .emacs…
0
votes
1 answer

make-frame does not set the right font size

If I open up a new frame in emacs (v24.3.1), the font is set to a different size. All other settings are correct but the fontsize. (On the screenshot, the window in the back opens up a new frame with make-frame, the window in the front is the new…
f00860
  • 3,486
  • 7
  • 41
  • 59
0
votes
3 answers

font-lock-add-keywords regexp for C++ operators

I have a regexp that finds and highlights operators in C++ but I can't for the life of me work out how to match operator[] using regexp. The usual trick of escaping the characters doesn't seem to work, it merely ends matching. …
Fatlimey
  • 53
  • 1
  • 5
0
votes
1 answer

emacs face naming convention

Defining Faces - GNU Emacs Lisp Reference Manual says that a face name should not end in -face, but when I run list-faces-display there are some face names that end with that. If I were to write a package which uses its own faces, should I use the…
Jisang Yoo
  • 3,670
  • 20
  • 31
0
votes
1 answer

Emacs Remove text from a string based on font-face

I've got a string which I got by calling buffer-substring. Is there a way to remove text from this string based on its face settings? As a random example: (save-excursion (let ((end (point))) (ignore-errors (while (not (looking-at "[^][…
Inaimathi
  • 13,853
  • 9
  • 49
  • 93
0
votes
1 answer

face font in c-mode when adding new keyword

I am trying to customize some added words to be colored differently from the default face-font colors. This is what I am doing: (defconst lconfig-font-lock-faces (list '(font-lock-function-name-face ((((class color)) (:foreground…
SFbay007
  • 1,917
  • 1
  • 20
  • 39