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.

7
votes
1answer
229 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 ...
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 ...
7
votes
0answers
947 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 ...
4
votes
0answers
88 views

Fontify (italic) text in agenda views

I have some TODO headings with italicized text. These display correctly in Org buffers, but aren't fontified and italicized (slanted) when retrieved as part of an agenda view. Is there a way to ensure ...
4
votes
0answers
264 views

“Invalid face reference: linum” even load linum after make frame

I want to have line number at buffer, but when I use Emacs server, the Message buffer display the following error: Invalid face reference: font-lock-comment-delimiter-face [2 times] Invalid face ...
3
votes
0answers
127 views

Region face foreground color as function of original faces

I know you can set the :foreground of the region face so that it simply uses the :foreground of whatever is selected, while using the region's :background. And I know you can just set the foreground ...
3
votes
0answers
275 views

Misc-Fixed fonts and font height

I use the Misc-Fixed fonts because I enjoy non-antialiased fonts. They are designed per height, and tolerate shrinking badly. For instance, in the following example, the default font is set to 9x15 ...
3
votes
0answers
57 views

Loading a theme and fontifying in batch mode

Loading a theme in batch mode seems to not set face attributes: $ emacs -Q --eval "(load-theme 'tango t)" \ --eval "(prin1 (face-attribute 'font-lock-keyword-face :foreground)))" "#346604" ...
3
votes
0answers
482 views

org-default face not having effect

I want to set a different font for org-mode contents. Strangely, setting '(org-level-1 ((t (:inherit variable-pitch)))) has the effect on headers as intended. However, setting '(org-default ((t (:...
2
votes
0answers
30 views

Why does setting the 'face property trigger fontification?

I'm trying to write a major mode for a programming language with JSX based syntax. Here's a minimal implementation. (defun example-forward-parse-jsx (start-pos limit) "Move point past the JSX ...
2
votes
0answers
61 views

Dired. Is it possible to change color of file name when file was changed?

Windows 10, Emacs 25.1 I use Dired+ as file manager. All files names color are yellow. If some file was changed not later than one hour ago then : this file name change it color, e.g blue after one ...
2
votes
0answers
243 views

using theming to adjust theme in spacemacs

I'm trying to use theming to make adjustments to an existing theme. Under dotspacemacs/user-init I have the following section: (setq-default theming-modifications '((tao-yang (...
2
votes
0answers
85 views

How to make minor customization to emacs theme colors

I'm a fan of gruvbox, but would like to slightly change the white colors to make them less intense. Is there any easy way of changing this line: (gruvbox-light0 "#fdf4c1" "#ffffaf") to this: (...
2
votes
0answers
71 views

Dired: use dimmed face for file details (permissions, ownership, etc.)?

I'd like to customize dired so the non-filename details (permissions, ownership, etc.) are slightly dimmed, putting visual emphasis on the filenames themselves. I like having the details present (I ...
2
votes
0answers
27 views

“Catch-all” rule for faces in theme definition

I am writing my own custom Emacs theme and I would like to express "if a face isn't explicitly listed above, don't color it". Many modes have their own custom faces (e.g., Tuareg or Erlang mode) and ...
2
votes
0answers
159 views

Faces not set immediately after load-theme

I'm trying to set the faces of highlight-indent-guides automatically whenever a new theme is loaded by making small adjustments to the background color of the default face. I have everything working ...
2
votes
0answers
22 views

Is it possible to highlight the region uniformly across different sizes/fonts?

Highlighting the region when it includes text with different heights/fonts shows gaps and different highlighting heights as follows: Is there any way of highlighting continuously (no gaps) and ...
2
votes
0answers
295 views

Changing linum-mode face background uniformly

I've been trying to change my line numbers background to be a different colour other than the background colour of my frames and it ended up looking like so :- How can I change the line numbers ...
2
votes
0answers
65 views

Changing background color based on first character on line

How can I change the font background based on the first character on a given line? Take for example: (set-face-attribute 'marker-2 nil :background some_function) where some_function returns "blue" ...
2
votes
0answers
1k views

How can I correct an “Invalid face” error?

Issuing M-x org-html-htmlize-generate-css gives the error Invalid face: font-lock-string What does this error mean and how can I correct it? Issuing $ grep -r "font-lock-string[^-]" ~/.emacs.d/ ...
2
votes
0answers
72 views

On using bitmapped fonts

I would like to make the bitmapped font Terminus the default font in all my "graphic"1 Emacs sessions. Since Terminus is bitmapped, I want to use it only in one of its "native" sizes, and I want to ...
1
vote
0answers
49 views

Display done org-habit habits in a different face

I'm experimenting with org-habit and currently have org-habit-show-all-today set to t so I can see a habit even when I've done it for that day. I'm doing that because I want to get the little reward ...
1
vote
0answers
58 views

Make text Invisible with font-lock-keywords

I'm interested in changing my org-mode buffers to have a better looking logbook. My ideal state to end up in is that text that looks like this: - State "WAITING" from "WAITING" [2018-11-16 Fri ...
1
vote
0answers
165 views

tabbar with theme

I want to remove a white border of the tabbar. (The strange color choice is only for checking the configuration of faces.) As you can see, the right part of tabbar has a white border and I can not ...
1
vote
0answers
79 views

Org-table color entries that match a predicate

Say we have the following table: | Student | Grade | |---------+-------| | Foo | 7 | | Bar | 5.5 | | Baz | 9 | Is there a way to change the face color of an entry when a ...
1
vote
0answers
120 views

How can I enlarge the font of tooltips?

I want to enlarge the text in tooltips displayed via https://www.emacswiki.org/emacs/PosTip . What can I do?
1
vote
0answers
184 views

ubuntu mono font hanging emacs?

I think this may be as much a problem with the fonts as with emacs. I've been using Ubuntu's mono font for emacs, and activating with: (set-face-attribute 'default nil :font "Ubuntu Mono") However, ...
1
vote
0answers
84 views

Org background color when collapsed

Lets say I want to color a particular org-level-heading with a code as below (set-face-attribute 'org-level-1 ((t (:background "linen") ) )) The uncollapsed heading will look like However, when the ...
1
vote
0answers
206 views

Org agenda using default face for some things (not caused by font-lock)

Org agenda is using the default face for some items, preventing customization. I've seen Org Agenda faces do not appear after applying themes, but font-lock is not enabled for my agenda buffer (the ...
1
vote
0answers
116 views

font size problems

I just set up a new Linux workstation, and I'm having some problems with fonts in Emacs. Evaluating this works: (set-face-attribute 'default nil :family "Terminus") ...but the size of the face is ...
1
vote
0answers
266 views

How to change parens color?

How to exclusively change color of pairs ()}]"'..)? As of now their face is default.
1
vote
0answers
58 views

Equivalent of add-face-text-property for overlays?

add-face-text-property is very convenient for adjusting the face of text based on text properties (Changing Text Properties). Q: Is there an existing equivalent to add-face-text-property to add face ...
1
vote
0answers
141 views

Icicles showing user-error message in echo area during TAB-completion

i have a strange behaviour of my emacs (25.1.1) running in cygwin within a terminal window (mintty 2.7.3). Every time when doing TAB-competion (eg. M-x describe-func) I got following messages in the ...
1
vote
0answers
33 views

Displaying adjacent boxed text (Zero-length/invisible delimiters for text properties?)

I'm interested in displaying adjacent boxed text using the :box t face property in the following manner for adjacent text: Is there an accepted convention for delimiting/isolating text properties ...
1
vote
0answers
182 views

Faces vs. font-lock faces

What is the relationship between the "basic" faces defined in faces.el and "font-lock" faces in font-lock.el? My initial impression was that basic faces, like bold and fixed-pitch, are based on style ...
1
vote
0answers
147 views

How can I stop an overlay from inheriting the properties of underlying text?

I'm using an overlay to display additional information next to Dired candidates, because modifying the Dired buffer directly prevents Dired from working properly. I'm displaying the text using a ...
1
vote
0answers
345 views

org-mode fontification error

Since some time ago I've been having this message: org-mode fontification error whenever I initialize org-mode by opening an org buffer. The initialization process will just get stuck and I have to ...
1
vote
0answers
118 views

org src fontify won't highlight some multiline comments

The option org-src-fontify-natively doesn't care about some multi-line comments. See: As shown in the picture above, the html comment isn't highlighted correctly. I tried hacking through the code and ...
1
vote
0answers
89 views

How do I make faces combine correctly?

Example: How do I make faces combine correctly? I am not opposed to providing a separate set of instructions for each combination (per theme), but do not know how to do that.
0
votes
0answers
37 views

Transparent title-bar not really transparent on Emacs 26.1

I'm using the emacs-mac port installed via Homebrew in macOS 10.14.4. (I installed it with the flag --with-natural-title-bar). I enabled the transparent title bar feature with defaults write org.gnu....
0
votes
0answers
39 views

Change org-priority faces when DONE

Is there a way to change the color of org-priority face once the item is marked as DONE? Currently, the entire line aside from the item's priority gets grayed out once the item is marked as DONE.
0
votes
0answers
37 views

Change the color of the file-name as it appears on an Emacs buffer mode line

I just downloaded the hemisu theme for Emacs which works very nicely. One flipside of the theme is that the file-name shows up in very lightly colored letters, and so becomes difficult to read. This ...
0
votes
0answers
20 views

Finding a fold face

Enter TeX-mode (AUCTeX), type \emph{test} and then C-c C-o C-b. This will 'fold' the macro and show only test in a 'fontified' manner. For me this means blue, italic, and bold. But I am unable ...
0
votes
0answers
51 views

highlight indentation with emacs client

I realized that neither highlight-indentation nor highlight-indent-guides works with emacs in server/client mode. I'm launching emacs server/client like this : $ /usr/bin/emacs --daemon $ ...
0
votes
0answers
30 views

Ruby's array.sample() equivalent for lisp

I want to write a method that returns a random (predefined) face In ruby I would do, def random_face [ :my-face-01, :my-face-02, :my-face-03 ].sample(1).first end How can I do it in elisp?
0
votes
0answers
66 views

get face value from theme

Is there a way to get a face value defined in theme without enabling it? Something like: (face-theme-background 'org-block-end-line 'my-mega-theme)
0
votes
0answers
44 views

How to create face that “passes through”?

What is the way to define a face that does nothing but "pass through" properties of the text it is applied to? E.g. in the quick-peek package, quick-peek-background-face is applied to all text passed ...
0
votes
0answers
148 views

Change the background color with region text as color code

I have many color variables defined in my css - LESS file, whose background color i like to highlight on text selection and running this elisp block. (add-text-properties (region-beginning) (region-...
0
votes
0answers
169 views

How do I get curly quotation marks to show in Emacs on OS X?

EDIT: My problem has been fixed or, more precisely, worked around, thanks to help in the comments below. Never figured out what exactly the issue was as it wasn't a problem with my Emacs configuration ...
0
votes
0answers
59 views

Change keywords faces in AUCTeX

I want to change keywords colors of the AUCTeX package. I found the variable font-latex-built-in-keyword-classes that could help me. If me assume I want to display the keyword "newpage" with the face ...