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.

Filter by
Sorted by
Tagged with
20
votes
1answer
481 views

how to prevent faces from bleeding onto surrounding areas of buffer?

Q: How do I keep org-mode link faces from bleeding over into the ... selective display characters at the end of a folded header? This is a visual tick that drives me a little nutty. When, in org-...
14
votes
2answers
3k views

How can I set different font sizes for buffers and for the mode-line?

I have this line in my init.el file to set the size of the font in all frames: (push '(font . "DejaVu Sans Mono-10") default-frame-alist) It works but i'd like to have a bigger font in all buffers ...
14
votes
3answers
465 views

describe-face character not under / unreachable by the cursor

I like using a combination of describe-face and customize-face to adjust the appearance of my working environment. Sometime this workflow fails when I want to change the face of a location I can not ...
13
votes
1answer
849 views

How do I insert text with a specific face?

I have a face, created this way: (defface test-face '((t . (:height 2.0))) "A face for testing.") I'd like to insert some text with that face. But these ways insert the text without the face: (...
13
votes
1answer
1k views

How to Strike out DONE items in org-mode?

I saw some folks have a way to strike out DONE items in org-mode. How do you do that?
13
votes
3answers
2k views

Is there a way to change color of active window's fringe?

To better distinguish between focused window and rest that are not I would love to change this window's fringe color. Discovering customize with fringe keyword I found only how to change its bg color ...
11
votes
2answers
445 views

How to change faces of org-mode links depending on the link type?

Org-mode offers a variety of different link types ([http], [file], [bibtex], [magit]...). However, they all get the same look defined by the face value for org-link. Is it possible to e.g. change ...
10
votes
2answers
2k views

Colors for different priorities in Org mode

I have configured Org mode with a face attribute for priorities with these lines in my init.el: (set-face-attribute 'org-priority nil :foreground "aquamarine1" ...
10
votes
1answer
1k 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 ...
9
votes
1answer
1k views

How can I override a pre-defined face for light and dark backgrounds?

I would like to use set-face-attribute to pick one of two colors for the foreground depending on whether the background of the current theme is light or dark. The expected behavior is that the ...
9
votes
1answer
839 views

Cocoa Emacs 24.5 Font Issues (Inconsolata-dz)

I am trying to set [Inconsolata-dz][1] as my default font to Emacs. Regular Inconsolata works fine, but the dz version is not working properly. Most functions I use keep throwing this error (followed ...
9
votes
2answers
855 views

Can I change the background color of the inactive minibuffer?

I tried it with the following settings: (add-hook 'minibuffer-setup-hook (lambda () (make-local-variable 'face-remapping-alist) (add-to-list 'face-remapping-alist '(default (:...
9
votes
2answers
2k views

How can I fill the entire line number bar with a custom background color?

In the screenshot below I have simply set the background of the linum face to some color, however there is a blank region at the end of the buffer and there are gaps between the lines when line ...
9
votes
1answer
955 views

Why does the font height change when bold?

It's so annoying... When any text on a line has its face changed so that the text is bold, the height of the line increases by (I assume) a single pixel. It's best shown with an image: Why is this? ...
8
votes
3answers
5k views

Disable enlarged Org mode header appearance

I am using Org mode on Macintosh GNU Emacs version 24.5.1 in GUI mode and the headers are enlarged. I would like to disable this feature so they rendered in the default font size. I have tried this... ...
8
votes
4answers
227 views

Is there a way to determine the face at frame x / y (mouse position)?

When trying to theme certain modes, it's not possible to place the point on the themed item (e.g. to do C-u C-x =) and identify the face used. My thought is to use the mouse to identify the face used,...
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 ...
8
votes
3answers
2k views

Quickly Adjusting Text to DPI Changes

My laptop has a 4K screen therefore a very high DPI, much higher than my external monitors. So when I switch from using external monitors to the builtin laptop screen I would like to quickly scale the ...
8
votes
1answer
283 views

Coloring mu4e headers based on title content

I'd like to color the messages in my *mu4e-headers* view, depending on which mailing list they come from. I'm rather new to emacs face alterations, and I didn't see anything that looked relevant for ...
7
votes
2answers
1k views

Emacs Blue color too dark

Emacs blue (on dark background) is too dark. classA is readable with difficulty in the example below: How to fix the dark blue colour?
7
votes
3answers
914 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 ...
7
votes
2answers
409 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 ...
7
votes
1answer
517 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?
7
votes
1answer
174 views

How does AucTeX display superscripts?

latex-mode is has a nice display of superscripts and subscripts. Not only are they reduced in size, but they are respectively raised and lowered a bit relative to the current line. Q: How can I make ...
7
votes
1answer
146 views

Combining diacritics not combining visually

The first two characters in the left buffer are LATIN SMALL LETTER A and COMBINING CIRCUMFLEX ACCENT. Together they should display as â, just like LATIN SMALL LETTER A WITH CIRCUMFLEX, â. However, ...
7
votes
1answer
703 views

How to set the foreground color of the cursor face?

I tried to set the foreground color of the cursor face, but it does not seem to work. Setting the background color works fine, but setting the foreground color does not have any effect. I would like ...
7
votes
1answer
263 views

Adding box around text without changing the text width

The documentation of Face Attributes suggests that adding a line-width of -n to the box attribute will draw a line of width n whose top and bottom parts occupy the space of the underlying text, ...
7
votes
0answers
984 views

How to better align tags in Org Mode using variable-width font

I prefer using variable-width fonts in Emacs whenever I can. That said, Org Mode tags are horribly aligned when headings use variable-width fonts, even if the tags themselves use fixed-width fonts. Is ...
6
votes
3answers
507 views

highlight-regexp in multiple buffers

highlight-regexp is pretty amazing, but when I run it manually by M-x highlight-regexp RET f?o RET 'someface it only applies the highlight to the current buffer. How can I apply a highlight to ...
6
votes
1answer
518 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?
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 ...
6
votes
5answers
819 views

Highlight \n and %s “inside” strings

Is it possible for Emacs to highlight backslash escape (e.g. \n) and format keyword (e.g. %s) inside string, without messing up current modes' faces? Like this:
6
votes
1answer
463 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 ...
6
votes
1answer
289 views

How to preserve color in *Messages* buffer?

When running (C-x C-e) the following snippet and doing M-x mes, I see text written in red in the minibuffer area, but the text in the *Messages* buffer is stripped of all formatting. (defun mes () "...
6
votes
1answer
246 views

Echo Area font face?

Is there any way to set a custom face for the echo area (and, by extension, the Isearch input text)? So far my searching hasn't turned up anything, except that it seems like there isn't a way to ...
6
votes
1answer
690 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
140 views

How to block highlighting of certain nicks in ERC

Some people in IRC channels I frequent have elected to use extremely common words for their nicks, including "a" and "me". I use erc-hl-nicks, and was able to block those particular nicks from getting ...
5
votes
3answers
723 views

How can I find out what face I need to change in the mode-line?

I have a UI element in my mode-line provided by which-func-mode. I also have it in my header-line, pictured below (the blue "render" text): How can I find out which face this is so I can style it to ...
5
votes
1answer
166 views

I-search prompt font

I want my minibuffer prompt to be in bigger font, so I've added this to my .emacs: (defun my-minibuffer-setup () (set (make-local-variable 'face-remapping-alist) '((default :height 1.5)))) (...
5
votes
5answers
7k views

How do I get my initial frame to be the desired size?

I have the following in my .emacs file: (when window-system (set-frame-position (selected-frame) 0 0) (set-frame-size (selected-frame) 91 63)) The value of 63 is supposed to make my initial ...
5
votes
1answer
415 views

Why are leading spaces colored before comments in makefile-mode?

In Makefile mode, leading spaces are fontified in makefile-space face (bright pink without customization), when there is no other text on the line. It seems to indicate incomplete lines, and makes ...
5
votes
2answers
609 views

Set face of outline ellipsis?

Q: how do I change the face of the outline ellipsis? When working with outlines, the (customizable) ellipsis indicates when a section is folded and there is hidden text, eg: * A heading... ** A ...
5
votes
1answer
261 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. ...
5
votes
1answer
94 views

Toggle text visibility

I would like to temporarily not be able to see what I am writing (counter-intuitive, I know, but sometimes it's helpful to not be able to immediately criticize what you are writing in order to ...
5
votes
1answer
165 views

Can you describe a face color in terms of an inherited face color?

Specifically, I want tags in org mode to be a variant of the color of the corresponding heading (e.g. less saturated or lighter). Each org mode heading level is a different color, so I can't just ...
5
votes
1answer
2k 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 ...
5
votes
3answers
1k views

How do I debug an “Invalid face reference: quote” message?

After using Emacs for some time, the message Invalid face reference: quote starts popping up in my message buffer. I'm not sure what causes it to start appearing. debug-on-message doesn't do anything ...
5
votes
1answer
166 views

How can I fontify a symbol by regexp match group (as in a naming convention)?

I want to add better support for expl3 to AUCTeX. I have regular expressions that properly group according to the naming conventions for: functions (\\(?:__)?[a-z]+_)([a-z_]+)(:[nNpTFwcVvxof]*), ...
5
votes
2answers
197 views

Change size of wavy underlines for HiDPI displays

I'm running emacs on Linux with HiDPI display and all X environment I successfully tuned to support it, but in emacs wavy underlines are still looking extremely thin (relatively to font size). I've ...
5
votes
2answers
825 views

Emacs Ipython Notebook - What is determining inline plot background?

I have been trying to figure out what attribute is setting the background for inline plots in EIN. The background for the plot seems to always take the default background color for my color theme, ...