Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

6
votes
1answer
621 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 ...
4
votes
1answer
129 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 ...
2
votes
1answer
596 views

How to customize org-agenda-* faces in .emacs file?

I am trying to customize org-agenda-* faces such as org-agenda-date, org-agenda-date-today, and org-agenda-date-weekend in my .emacs file. Normally, I install the use-package package to lazily load ...
7
votes
0answers
193 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
0answers
909 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 ...
5
votes
0answers
84 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
124 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 ...
4
votes
0answers
265 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
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 ...
3
votes
0answers
26 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 ...
3
votes
0answers
150 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 ...
3
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 ...
3
votes
0answers
54 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
249 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
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" ...
3
votes
0answers
458 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
59 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
234 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
79 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
266 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
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
70 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
20 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 ...
1
vote
0answers
43 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
49 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
142 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
73 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
115 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
172 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
76 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
193 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
100 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
251 views

How to change parens color?

How to exclusively change color of pairs ()}]"'..)? As of now their face is default.
1
vote
0answers
54 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
32 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
177 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
137 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
344 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
87 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
30 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
19 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
49 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
59 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
42 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
140 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 ...
0
votes
0answers
146 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
164 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
58 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 ...