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
2
votes
1 answer

emacs minor mode for temporarily modifying the default face

For example, how can I make a minor mode that changes the default foreground color to gray, and upon exiting the minor mode, the foreground color is back to black? This mode might be useful when you don't like certain text to be seen over your…
Yoo
  • 17,526
  • 6
  • 41
  • 47
2
votes
1 answer

How to customize colors in realgud?

I've just installed realgud so that I can use trepan2 for debugging python in emacs. I immediately ran into a serious problem: some of the colors in the comint buffer are so light as to be almost invisible: light blue or even yellow on white. How do…
Leon Avery
  • 856
  • 2
  • 8
  • 20
2
votes
1 answer

How to display text with different colors in mode-line

I want to display parts of my mode line with different colors but it isn't working as expected and I can't find a good web reference for this. I can change the text to bold or italic but not change the colors as required. The simplest possible…
Chris McCauley
  • 25,824
  • 8
  • 48
  • 65
2
votes
1 answer

font-lock-mode in haskell-mode seems to ruin the width of single spaces in emacs

I find that font-lock-mode are doing something wrong with the width of single spaces no matter what monospace font I'm using. Here are some screenshots: Using DejaVu Sans Mono: font-lock-mode on: font-lock-mode off: Using Luculent: font-lock-mode…
Javran
  • 3,394
  • 2
  • 23
  • 40
2
votes
3 answers

How to disable bold fonts by overriding set-face-attribute in Emacs?

The idea is to redefine set-face-attribute so that it sets face attributes normally except for the :weight attribute, which shall always be set to normal (the default value, I think). With this I hope to disable bold fonts in Emacs once and for…
Ernest A
  • 7,526
  • 8
  • 34
  • 40
2
votes
1 answer

How do I set emacs frame background colour?

I am using Emacs 24.3.1 on Ubuntu 13.10 amd64, Xubuntu session running in GUI mode. As you can see the frame background is grey. I want it to be white. The following all continue to result in a grey frame background: emacs -bg…
Roger Binns
  • 3,203
  • 1
  • 24
  • 33
2
votes
1 answer

structural view of source code in emacs

some times i have comments to my code at different structure levels, for example the following python code: # level one comment for i in list: # level two comment if mod(i, 2): # level three comment print 'odd number' …
shelper
  • 10,053
  • 8
  • 41
  • 67
2
votes
1 answer

Match one backlash; match two backslashes; match tilde + two backslashes

I'm interested in seeing if it is possible to match just 1 backslash, and just 2 backslashes, and a tilde plus two backslashes. I'm using Emacs in latex-mode and am setting up keywords for font-lock. Defining a single backslash as a keyword wreaks…
lawlist
  • 13,099
  • 3
  • 49
  • 158
2
votes
3 answers

Finding out which regexp caused a specific face in Emacs

I am trying to find out which regexp causes the connect to be highlighted in this cperl-mode buffer. describe-face tells me this is a font-lock-type-face. After having a look at font-lock-keywords-alist and font-lock-keywords I dont't see where this…
Kungi
  • 1,477
  • 1
  • 18
  • 34
2
votes
2 answers

Emacs change font face in LaTeX mode

I have a horrible font rendering for verbatim text in Emacs LaTeX mode: How to make it black, normal size?
user4035
  • 22,508
  • 11
  • 59
  • 94
2
votes
2 answers

Apply face color basing on the colomn number

There are so-called strict formats, like pdb - where the meaning of the symbol is defined by the colomn number of the symbol. For example here is a specification of the above mentioned pdb format. Is there a way I can apply face colour basing on the…
Adobe
  • 12,967
  • 10
  • 85
  • 126
2
votes
1 answer

How are conflicting faces orders resolved?

(I don't know if the title of this question is correct) When using several minor modes simultaneously changing 'colors', what determines in which order which modes shows what? For example I'm trying to use both highlight-changes-mode and…
Cedric Martin
  • 5,945
  • 4
  • 34
  • 66
2
votes
3 answers

Emacs Gnus Faces (Fonts)

The slrn newsreader has an attractive interface with different colours for the author, subject and date columns when browsing list of articles in a newsgroup. I am looking for the Emacs font/face variables for these fields in gnus, but have not been…
SabreWolfy
  • 5,392
  • 11
  • 50
  • 73
1
vote
1 answer

Emacs: whitespace face overriden by solarized?

I tried out the solarized theme (available from here) and really liked it. However, it somehow overwrites my whitespace settings and no matter how I configure the whitespace-face, it gets overwritten. Any ideas on how to control the color of my…
mart1n
  • 5,969
  • 5
  • 46
  • 83
1
vote
2 answers

Change face of plain text between double quotation marks in Emacs

I am looking for a way to highlight or use different face of quoted text in plain text. It seems that there should be a sophisticated/enhanced text mode but I cannot find it. If there isn't a easy solution, can you let me know where should I begin…
lenient7
  • 13
  • 2