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.

81 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
1k 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
1answer
928 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
164 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
0answers
141 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
330 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
183 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?
3
votes
0answers
177 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
319 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
66 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
2k 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/ ...
3
votes
0answers
770 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
43 views

replacement for `emacs -xrm Xft.embolden:true -fn Hack-13` for emacs 27.1

For last 2 years (2018-) I've been using emacs -xrm Xft.embolden:true -fn Hack-13 to start emacs w/ suitable sized and 'brightness'ed fonts for me in my systems. What that does gives extra boldness to ...
2
votes
0answers
64 views

How do you set the line height when customizing a font face? (e.g. an org-drawer)

I specifically want my :NOTES: org drawer (and :end:) to be a smaller font size (say 0.5 relative to normal text). Ideally the drawer contents also (say 0.8). However, when I set the height property ...
2
votes
0answers
44 views

org-table: hide grid lines

I like how org-mode allows me to quickly create and edit tables. However, I do not like the table's appearance and I would like to modify it. Customizing the face only lets me change foreground and ...
2
votes
0answers
61 views

Org-link font size in the heading

I often use org-links in headings, e.g.: *** Heading [[foo]] **** Subheading [[bar]] And I use different font-sizes for different levels. Now, I would like the face of the link to be of the same ...
2
votes
0answers
32 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
117 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 ...
2
votes
0answers
75 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
283 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
91 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
97 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
28 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
252 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
230 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 ...
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
421 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
67 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
80 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
1answer
23 views

Replacing text with svg image via font lock

I've made small function to create SVG tags (see below) and I would like to use the image property of faces to replace some keywords. I'm not sure how to do that and if it is possible. For example, ...
1
vote
0answers
8 views

Interactively customize theme-tied faces

M-x customize-face is great and custom-theme-set-faces is a great function. Can I have these two tied together easily so that I can interactively customize a face that will be tied to the currently ...
1
vote
1answer
18 views

How to add more default face highlight colors

Using (highlight-symbol-at-point) at some point the highlight start repeating colors. I find the variable that holds the default face highlight color values in Emacs is: hi-lock-face-defaults It ...
1
vote
0answers
17 views

Is it possible to have different color values for a font-lock face in a string?

My font-lock-warning-face has a red color. Which works well in almost all circumstances, it is very pronounced. The problem is, my font-lock-string-face has orange color. So warnings inside strings ...
1
vote
1answer
45 views

How to write a theme from all known faces?

I'd like to write a theme from all known faces (face colors and styles - as one would typically find in a theme). There is a way to write themes customize-create-theme, however it only writes some ...
1
vote
0answers
31 views

Is it possible to add visual padding around a character?

Is it possible to add visual padding around a variable width character (generally too, I suppose)? I've looked into using propertize and buffer-display-table to accomplish this, but every solution ...
1
vote
0answers
40 views

Org-mode list item spacing?

In org-mode, is it possible to increase the spacing between items in a list while keeping the line spacing in paragraphs the same? The closest I have found is to increase the height of org-item-dt, ...
1
vote
1answer
98 views

Improving org-block-begin-line, splitting in several faces

The face org-block-begin-line allows to customize the first line of the following block #+BEGIN_SRC lang :var arg1=1 arg2=2 ... #+END_SRC However, I would like to customize the faces within the line,...
1
vote
1answer
479 views

running emacs as a daemon does not load custom-set-faces?

I am starting with emacs --daemon in my session, and it seems to trigger some odd behavior regarding themes and faces. I am using this solarized theme but I have found it to have weird cursor issues. ...
1
vote
0answers
181 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
311 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
90 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
307 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
127 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
263 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
188 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
344 views

How to change parens color?

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

customize creates custom-set-faces unintentionally

I just edited the variable org-M-RET-may-split-line with easy costumize, saved and applied. I checked my dotfile right afterwards and noticed that (custom-set-faces '(default ((t (:foreground "#...
1
vote
0answers
92 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
155 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
41 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
223 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 ...