Questions tagged [faces]

A 'face' in Emacs is the visual presentation of text using fonts and highlighting. A default face, for example, specifies both the font and the foreground and background colors.

4
votes
2answers
1k views

How to modify-face for a specific buffer?

I work with a lot of tabular data files and use stripe-buffer.el make them easier to read. But I also work with more than one, so I'd like to make it easier to distinguish among them as well and want ...
7
votes
1answer
453 views

How to change face in particular theme locally?

The title says it all. How to change face in specific color theme locally, in my configuration?
6
votes
1answer
644 views

Unset inherited face attribute

Suppose I want the face helm-match to have an unset foreground. Unfortunately, helm-match inherits from match so, if I try to unset the foreground normally: (set-face-foreground 'helm-match nil) The ...
6
votes
1answer
430 views

something changes the default face in my .emacs

Debian Sid, emacs25, cinnamon 3.2.7 In my ~/.emacs I have (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init ...
7
votes
3answers
873 views

Distinguish between blank lines at end of buffer and bottom of window?

Q: how can I get a visual indicator distinguishing between the end of the buffer and the bottom of the window? Use case: I've got a buffer with some blank lines at the bottom. However, the bottom of ...
1
vote
1answer
209 views

Colors with enriched-mode

I am trying to use the enriched-mode for my personal documentation. I would like to colorize specific sections of my text for clarity. I can successfully do it with Edit/Text Properties/Foreground ...
8
votes
2answers
1k views

org-block-background font not having effect

I use variable-pitch-mode with org buffers. Normally I set org-block to fixed-pitch and the code between #+BEGIN_SRC and #+END_SRC are properly rendered as fixed width fonts, also with proper syntax ...
10
votes
1answer
960 views

How to customize syntax highlight for just a given mode

I would like to change the syntax highlighting in my lua-mode.el without affecting other major modes. Just as an example, I would like "key words" like if, then, else to be in bold and blue typeface ...
6
votes
2answers
1k views

How can I determine the width of characters on the screen?

Specifically, I'm interested in the width of characters in the default font assuming that the default font is mono-spaced. From reading the documentation, I got the impression that this should give ...
2
votes
1answer
326 views

Org Agenda faces do not appear after applying themes

In my Org Agenda all text except for priorities use the "default" face. Until recently I would see colourful text for say, todo status. I was playing around with custom themes, so I may have broken ...
5
votes
1answer
249 views

In table-mode, how do I change the face used for cells?

If I make a table (with M-x table-insert), the background color is a dark blue, and the text color is a light grey. I'd like to make the face different, but I'm not sure what face I need to change. ...
2
votes
1answer
384 views

Make all text of a given face invisible

Is there a straightforward way to make all text with a given face invisible? I don't believe I can make invisibility be intrinsic to the face, but can I perhaps specify a minor mode that makes sure ...
1
vote
1answer
511 views

How to overwrite properly a face for a particular theme

I use the monokai theme by default in my Emacs configurations. But sometimes I use other themes too, particularly light themes like leuven if the light in the room is more suitable for that. But I don'...
7
votes
2answers
382 views

How to make the region face take priority over the `show-paren-mode` face?

I'm using show-paren-mode with expression highlighting, changing the background face to just a shade lighter than the default background. I like it a lot. The problem is that when I have a mark, the ...
6
votes
1answer
497 views

How can I set face for echo-area message

When I print messages using (message (propertize "text" 'face 'some-face)) properties get printed as text: #("text" 0 4 (face some-face)) How can I have faces displayed properly?
4
votes
1answer
1k views

Changing the Variable Pitch Font

Is there a way to change the font associated with the variable-pitch-mode? On my emacs installation enabling variable-pitch-mode changes the font to a sans-serif font; I would like to use a serif font ...
3
votes
2answers
502 views

Get foreground color of face at point

I am writing a function to get the foreground color of the face at point and am thinking that Emacs may already provide a better method than the one I'm composing? I am going to be using this ...
1
vote
3answers
343 views

How to determine where a face (as it appears on the screen) is defined?

I very much dislike the font faces I get for some modes. I know that I can customize them, but in some cases (e.g. org-mode) this would require customizing dozens of faces. Therefore, what I really ...
1
vote
1answer
102 views

Change the color of the wrap around arrow

So I would like to change the color of the arrow that shows the text is being wrapped. Specifically the red arrow shown here: I have tried searching myself and the closest I came is finding out the ...