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
3
votes
6 answers

Emacs - color of directories in dired

I have search the web. I have tried color-theme (perhaps I need to create my own, but really I have my emacs set up the way I want it except for this ONE thing, and I could not find a color theme that was acceptable to me). I just want to change…
nroose
  • 1,689
  • 2
  • 21
  • 28
3
votes
4 answers

Disable italic in Emacs?

I would really like to have the italic style disabled in Emacs. In this post it is explained how to disable bold and underline, but not italic. Does anyone know how to do that? Using tab-completion, I can see I have these…
Sandra Schlichting
  • 25,050
  • 33
  • 110
  • 162
3
votes
0 answers

Fake bold and italics in emacs

Is there a way to make emacs fake bold and italic styles for fonts that don't have them? Generally, programs will make fake bold and italic styles for fonts by shearing them and increasing stroke width if the font doesn't provide an actual italic or…
Rose Kunkel
  • 3,102
  • 2
  • 27
  • 53
3
votes
1 answer

Getting Faces to Share Background Color in Emacs

I'm in the process of configuring linum, hlinum, and hl-line for Emacs 24, and something I'm running into some trouble with is getting the hlinum highlight to match/inherit the background color of the line highlight. In my Elisp file responsible for…
user1017523
3
votes
3 answers

How to define multiple emacs faces?

I'm trying to define some emacs font faces to do some custom highlighting. This seems to work when I define them individually: (defface my-r-face `((t (:foreground "red"))) "Red highlight") (defvar m-r-face 'my-r-face "Red.") (defface my-g-face…
RFairey
  • 736
  • 3
  • 9
3
votes
2 answers

How to customize a face on Emacs, but only when hl-line is active?

I am using Emacs 24, console (8 colors) with the Solarized theme. I want to make the comments less intrusive using: (set-face-foreground 'font-lock-comment-delimiter-face "black") (set-face-foreground 'font-lock-comment-face "black") That way the…
Mathieu Marques
  • 1,678
  • 15
  • 33
3
votes
0 answers

emacs minimap: how to highlight functions using semantic/face

I am trying to customize the minimap package in emacs. I'd like to be able to read the name of the functions, class, etc while in the minimap. The effect I am trying to achieve is this (although in python mode): (from…
ajeje
  • 590
  • 5
  • 11
3
votes
1 answer

Multiple custom-set-faces and custom-set-variables in .emacs?

When I customize a face through the M-x customize-face menu and save the changes to disk, Emacs adds automatically generated code to my .emacs file that looks like this: (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
3
votes
3 answers

Modify face under cursor in Emacs, including on ansi-term

Is there a way to easily modify the font-face under cursor? For example, the text in blue below is hard to read:                            The above is the output of ipython --color "Linux" running on an ansi-term with tango-dark in Emacs 24.1,…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
3
votes
1 answer

How to get face from under overlay?

Here's the situation: I need to retrieve the face's under point boundaries, but if I use highlight-current-line mode, that face overlays the face that I'm interested in. face-at-point or (get-char-property (point) 'face) will only give me the first…
user797257
3
votes
1 answer

Specifying only a new background color for a keyword in font-lock-keywords

I would like to highlight some portions of code with a specific background color, but I would like the rest of code highlighting to remain in place. I.e., keywords should still be highlighted by font-lock as keywords, only their background should…
Kirill
  • 470
  • 3
  • 13
2
votes
1 answer

How to custmoize git.el's diff face in Emacs?

My Emacs is set to display text as black background on green text. The problem is when i do a diff using git.el the part at the top of the buffer showing changes starting with --- or +++ is showed using greenish color on green so i can't read i…
Hamza Yerlikaya
  • 49,047
  • 44
  • 147
  • 241
2
votes
1 answer

Getting Emacs to recognise custom math delimiters so it can colour the face accordingly

I have found a code to make typing equations in LaTeX in a simpler and faster way. Instead of typing \begin{equation} \end{equation} I can now type \be \ee It works great and I am happy with it. The code, found in this document (p. 13),…
Vivi
  • 4,070
  • 6
  • 29
  • 44
2
votes
2 answers

Color discrepancy between Emacs 22 and Emacs 23

If .emacs contains the following two lines (set-face-foreground 'modeline "#000000") (set-face-background 'modeline "#00FFFF") then Emacs 22 correctly uses color #00FFFF (cyan), but Emacs 23 uses a different shade of blue (#90FBFE). What is…
Sam
  • 563
  • 5
  • 15
2
votes
4 answers

In Emacs, how do I create for a certain color constant to be mapped to another color?

I use Emacs native Win 32, but run it in DOS Prompt using emacs -nw. I love it. But, I can not easily read the blue color for a face foreground. And now I like to mapped all blue color, to be lightblue. Is there some sort of alias like…
swdev
  • 4,997
  • 8
  • 64
  • 106