Skip to main content

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
0 votes
0 answers
21 views

How can I add padding between a header and the previous and immediate lines in org mode

How can I add padding between a header and its adjacent lines so that they look cleanly formatted like any Rich Text Editor does. I was able to use a workaround using the :box face-attribute to do ...
Gangula's user avatar
  • 291
0 votes
0 answers
32 views

Can I set a background color with alpha transparency in face-attribute

I would like to have a background color on all my headers which is 80% transparent white - so that it works fine in any theme. Currently I'm using the below config to set the hex code as the ...
Gangula's user avatar
  • 291
0 votes
0 answers
18 views

Highlight org-pretty-entities in a custom color background

I'm using org-pretty-entities t to enable pretty entities like \gamma or \to. But I want to be able to highlight them in a different background color which helps me differentiate that these are pretty ...
Gangula's user avatar
  • 291
2 votes
1 answer
98 views

How to see face value by name?

I found that while debugging faces it's often useful to see whether the face even exists and if it does then what value it has. I know there's a list-faces-display to list all defined faces, but it's ...
Hi-Angel's user avatar
  • 848
0 votes
1 answer
40 views

Doom Emacs - `custom-theme-set-faces` not working for `org-level-n` faces

I am trying to modify a few faces for a specific doom-theme in Doom Emacs. I am only interested in an emacs-lisp solution, I do not want to customize via the dedicated Emacs interface. I got the basis ...
lyndhurst's user avatar
0 votes
0 answers
21 views

Unable to modify quote and verse blocks in org-mode

Although I have set org-fontify-quote-and-verse-blocks to t, when I call describe-text-properties with point on a #+begin_quote or #+begin_verse block the value of face remains org-block: There are ...
Pablo's user avatar
  • 320
1 vote
1 answer
61 views

Different fonts for buffer, minibuffer and modeline

I tried set-frame-font but it changes the font for not just the buffer, but also minibuffer and modeline. Is it possible to just change the font for the buffer, but not minibuffer and modeline? i.e. I ...
Microsoft Linux TM's user avatar
0 votes
1 answer
40 views

My default face only supports one size

I am trying to restore the face scaling functionality I had in previous versions of Emacs. On Ubuntu 22.04, Emacs (not 30!) master branch d4d6830f8a0. Tested on tag emacs-29.2 with the same result. I ...
Gauthier's user avatar
  • 511
1 vote
0 answers
135 views

How to keep existing text-property decoration while using font-lock?

I tried to use text-property to decorate specific texts as well as automatically color tab characters in a text-mode buffer, but didn't find a way to realize them at the same time. This is my try: ...
yos's user avatar
  • 11
0 votes
0 answers
39 views

Broken fonts in new frames

In new frames opened by C-x 5 2, the text appears as rectangles (see the gif below). Possibly, Emacs doesn't respect my font settings. In my init.el file, I have the following lines: (set-face-...
Alex's user avatar
  • 155
1 vote
4 answers
78 views

search or occur for text with a certain face, or character properties?

I'm interested in finding zero-width spaces and similar "glyphless" characters in my buffer -- and more generally, text that's highlighted or has a certain face. I can show zero-width spaces ...
Dan Drake's user avatar
  • 655
1 vote
0 answers
36 views

How to change font-size for a single face in a single buffer

I am trying to change the font size of a single face only within a single buffer. Currently, the face is defined like this: So I thought that all I need to do is evaluate (face-remap-add-relative '...
Nikratio's user avatar
  • 949
0 votes
0 answers
16 views

define a special org-link face inside of org-table, different from outside?

I'd like to define a special org-link face inside of org tables, such as to set link to fixed fonts within a table, and to variable fonts outside. I tried to play with custom-theme-set-faces in ...
Laurent Jacques's user avatar
0 votes
1 answer
129 views

Change white-space color

I'm trying to set the whitespace color with something less visible, but for some reason is not applying it. (custom-set-faces '(whitespace-space ((t (:background "red"))))) this inside ...
Math's user avatar
  • 103
0 votes
0 answers
18 views

Select font for buffer via [Gtk] GUI font selection tool

From the menu-bar selecting: Option -> Set Default Font... pops up a (Gtk?) font selection tool: Is there a nice way to select font for the current (or specific) buffer without configuration ...
Yotam's user avatar
  • 101
1 vote
1 answer
238 views

How to customize the appearance of eglot's inlay hint?

eglot's inlay hints are extremely close to the actual code, it makes the code almost unreadable. For example: The name of field is input, but it looks like inputString! Is it possible to customize ...
Lai Yu-Hsuan's user avatar
0 votes
0 answers
107 views

Readability of Camel Case

I am writing Latex Style Files and want to improve the appearance of Camel Case Variables and Functions. What kind of elisp function can I write to enhance readability. Have been directed to glasses....
Dilna's user avatar
  • 1
0 votes
0 answers
31 views

color org-agenda entries by level

My org agenda (I use it as a todo-list without dates with the alltodo type, generating a list of all todo entries for each file) has many entries with many subheadings (which can again have multiple ...
swhalemwo's user avatar
0 votes
0 answers
46 views

can not pass :font attribute to face-remap-add-relative

The doc for face-remap-add-relative said: This function adds specs as relative remappings for face face in the current buffer. specs should be a list where each element is either a face name, or a ...
HalmondD's user avatar
0 votes
1 answer
172 views

Increase text size permanently

How can I set the text size to be larger all the time, starting from when I open the GUI app? I am specifically referring to the text size for the buffer and modeline. I am moderately visually ...
vnbcs's user avatar
  • 1
0 votes
1 answer
39 views

transient mark mode highlighting not visible inside preview latex

I am using preview latex in auctex. When you are inside an equation there is a blue background around the latex you are previewing, which means I cannot see the highlighing from transient mark mode. ...
Progamer's user avatar
0 votes
1 answer
254 views

Changing some attributes of face `mode-line`

I want to change some attributes for the mode-line using elisp file calls. But I want to use exclusively the code that I write myself, without having emacs write to my init file. Although I have been ...
Dilna's user avatar
  • 1
0 votes
1 answer
33 views

Function to Set org-hide foreground not working

One issue with themes in Emacs is that they tend not to set the org-hide face properly so that leading stars in headings become visible. I have written a function to set the org-hide foreground to the ...
Daniel Doherty's user avatar
2 votes
1 answer
325 views

custom-set-faces not working for client

I have a custom (custom-set-faces ...) section in my ~/.emacs file. When I run emacs this section seems to get completely ignored since the custom colours don't get set. But if I go to ~/.emacs, ...
Jan Stolarek's user avatar
1 vote
2 answers
116 views

Nonbreakable space font

I use C-x8space to insert a non-breakable space. In recent Emacs (I'm on 28.2 now), it started being displayed much narrower than in older versions. I use a monospace font called monofur, but the ...
choroba's user avatar
  • 2,085
1 vote
0 answers
260 views

How to change face background in org mode source block?

I've changed background of org mode source blocks, which wasn't picked up by the vertical lines (rulers) on the left. I've never seen anything like that before and I would be grateful for any ...
Daniel Krajnik's user avatar
0 votes
0 answers
29 views

Making one global cookie-list from face-remap-add-relative

What would be an neat strategy that accumulate cookies from face-remap-add-relative in a list ? (defun komis-luna-hglevel-tfcadd () "Set foreground colours of headings according to level. The ...
Dilna's user avatar
  • 1
0 votes
0 answers
32 views

Removing colours from heading levels in org

I want to understand the problem outlined by the debugger. Am using the following to set the colours for the heading levels. (defun komis-luna-hglevel-addtfc () "Set foreground colours of ...
Dilna's user avatar
  • 1
0 votes
1 answer
50 views

Remapping a face in font lock mode

Given this headline: ** Title Title Title Title The headline has the face "org-level-2" applied. This face has been applied by means of a regexp, using font-lock. Let's assume that "...
cidra's user avatar
  • 139
1 vote
1 answer
40 views

bookmark+ highlighting problem

I am trying to use bookmark+, but I am unable to get the highlighting as I wish (or, maybe, as I wrongly expect?): When I change the default highlight of a bookmark, I only see the purple flag, but ...
scfrank's user avatar
  • 13
1 vote
2 answers
147 views

How can I find the face of the items in the headeline in lsp-mode?

Re-edited the answer for clarity Typically I would put my cursor over the text, and call M-x describe-face, but I can't do that with the headerline. In the above screenshot, I want to change the ...
suvayu's user avatar
  • 1,638
1 vote
1 answer
68 views

How to remove colored background of minibuffer prompt?

I modified my init.el-file. I added cursor-modifications and airline-themes. When I want to find a file however, this ugly yellow box occurs. I looked around in my init.el, but I did not find anything ...
MySQLInjection's user avatar
1 vote
1 answer
65 views

How to hide a face?

I am new to Emacs (28.2) and would like to customize certain packages by simply hiding some of their elements or faces. For example, I'm trying to remove elfeed-search-last-update-face from elfeed-...
Carapuce's user avatar
0 votes
2 answers
352 views

Emacs Modus themes

I would like to add a language in the org-src-block-faces list: (defun gb/org-src-block-faces () (add-to-list 'org-src-block-faces '("Php" modus-themes-nuanced-...
Gub's user avatar
  • 3
3 votes
1 answer
144 views

Face Text Property: void, nil, default

A string may hold a nil or default face text property, or its face text property is simply unspecified. E.g., #("void nil default" 0 4 ; unspecified () 5 8 ; nil face (...
shynur's user avatar
  • 5,578
0 votes
1 answer
105 views

With Ivy/Counsel, why are some foreground colors in `M-x` a different color than others?

Please see the picture below. Why are some things colored orange? I can't figure out what Face is causing that. This is using Ivy/Counsel.
Dargscisyhp's user avatar
0 votes
1 answer
113 views

How to get a minibuffer state indicator for Evil's `evil-want-minibuffer`?

For regular buffers, Evil has a state indicator in the mode line. But when using Evil in the minibuffer (by setting evil-want-minibuffer to t), there's no state indicator besides the cursor. Viper had ...
mtraceur's user avatar
  • 376
2 votes
2 answers
71 views

Colourize buffer names differently for the files located in different directories

I am working upon 2 projects that have similar structure. And sometimes occasionally modify a file in the wrong buffer. So I desided to set different colours for the files in the different projects: (...
user4035's user avatar
  • 1,069
4 votes
1 answer
138 views

overlay makes text unreadable -- where does it come from? Overlay face is "undefined face"

There is an overlay making parts of stack traces in my inferior python buffers very difficult to read: I would like to change the coloring of the yellow part of line 42. If I run M-x describe-char ...
Timothy W. Hilton's user avatar
1 vote
3 answers
51 views

emacs -nw: how can I turn off the reverse video for directories in dired?

How can I turn off the reverse video for directories in dired? As you see emacs -Q -nw --color=never . has still too much color: The only thing I want to have with white background is my cursor. ...
Dan Jacobson's user avatar
2 votes
1 answer
43 views

Dired+ : Not change foreground color of compress files

Emacs 27.1 package Dired+, Version: 2023.01.14 Here screen As you can see the foreground of suffix compress file is correct (orange). Nice. But the foreground of name compress file is not change (...
a_subscriber's user avatar
  • 4,174
1 vote
1 answer
60 views

how to config highlight style in spacemacs as sublimetext did?

I used highlight-symbol to show all selected text in spacemacs, but that looks not very good as sublime text did as following pic: My question is that if spacemacs could use box style without color ...
qbai's user avatar
  • 23
0 votes
1 answer
47 views

How to create new faces for specific keywords on a webmode buffer?

Problem In a (lsp & web-mode) buffer; "function", "if", "async" are all the same color, I tried to change "if" face with the following: (defface xxx-font-...
AVALFINN's user avatar
0 votes
0 answers
17 views

Change face using dir locals file [duplicate]

I am trying to set face for org blocks to invisible for certain folders, so that it is nicer to read the org files with code. I am using .dir-locals.el file. So, this example for the begin line works: ...
Arktik's user avatar
  • 972
2 votes
1 answer
80 views

Is there a way to watch/debug changes of face properties?

In my config file, I set properties for some faces used by my setup of Doom Emacs. These properties are promptly ignored when Emacs is loaded, and what I see is how things were before. I'm guessing ...
aaa's user avatar
  • 486
0 votes
1 answer
84 views

how to change mouseover colors of emacs' org-links?

M-x customize-face RET org-link RET I understand that I can access and change the appearance of links when there's no mouse over them, but I can't find a way to change the background color and font ...
delki8's user avatar
  • 105
1 vote
1 answer
344 views

How can I set a face/style in emacs for a quotation in org mode?

Org mode supports quotations with the following syntax #+begin_quote To boldly go where no man has gone before #+end_quote I would like to make this region italic by default. Is there a variable for ...
Att Righ's user avatar
  • 775
3 votes
2 answers
301 views

List items don't align properly when using a variable pitch font in Org mode

I'm using the "Charis SIL Compact" font for Org mode and everything looks fine except the second, third lines of list items that span multiple lines don't align properly. When using a ...
Zoli's user avatar
  • 451
0 votes
1 answer
314 views

Custom function to activate variable pitch mode in Org mode

I have this face definition that applies globally: (set-face-attribute 'variable-pitch nil :family "Charis SIL Compact" :height 180) The problem is that Elfeed and Mu4e also use the ...
Zoli's user avatar
  • 451
1 vote
1 answer
49 views

Incompatible faces error

I'm trying to set my ediff faces to reuse some of the magit faces. The ediff colors are not very good in the dark mode I'm using. But I'm getting an error about compatibility. I found this error ...
Todd's user avatar
  • 211

1
2 3 4 5
9