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
1 vote
4 answers
50 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
  • 573
0 votes
0 answers
31 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
  • 919
0 votes
0 answers
9 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
42 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
  • 101
0 votes
0 answers
14 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
0 votes
0 answers
61 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
96 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
26 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
27 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
69 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
31 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
80 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
19 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
212 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
0 votes
1 answer
73 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,015
0 votes
0 answers
21 views

Setting outline-%d foreground according to dark or light theme

I want to adapt this so that the colours used depend upon whether a dark theme (use pigment-darkbg) or light theme (use pigment-lightbg) is being used. What can I do ? Would the following be proper ? ...
Dilna's user avatar
  • 1
1 vote
0 answers
173 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
28 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
29 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
42 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
  • 135
1 vote
1 answer
31 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
65 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,588
1 vote
1 answer
54 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
33 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
228 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
2 votes
1 answer
124 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
  • 4,638
0 votes
1 answer
62 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
0 answers
21 views

Highlighting strings in Org and Markdown mode doesn't work with *bold* or /italic/

I want to highlight strings between double quotation marks in org-mode and markdown-mode, just so they're easier to see, as in LaTeX-mode. I have the following in my .emacs: ;; Highlight strings ...
Joel Adamson's user avatar
0 votes
1 answer
67 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
  • 256
2 votes
2 answers
59 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,059
2 votes
0 answers
74 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
32 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
37 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
  • 3,926
1 vote
1 answer
51 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
43 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
16 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
  • 962
2 votes
1 answer
44 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
  • 426
0 votes
1 answer
49 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
228 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
  • 745
2 votes
2 answers
187 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
  • 421
0 votes
1 answer
220 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
  • 421
1 vote
1 answer
25 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
0 votes
1 answer
60 views

How can I add custom keywords into Builtin Exceptions in python-mode to color them?

In python-mode, Exception keyword has font-lock-type-face for coloring. Example output of the coloring: If possible, I want to add custom keywords into Builtin Exceptions such as QuietExit, Terminate ...
alper's user avatar
  • 1,300
2 votes
1 answer
55 views

Lisp Mode Documentation Syntax color change?

I use emacs for common lisp development. I noticed that the documentation string for functions is white and makes it hard for me to read. Is there a way for me to change the color of this string? ...
Vinn's user avatar
  • 283
0 votes
0 answers
52 views

In Emacs how do I show the first 79 columns of a line in their own colour?

I am using the Emacs package visual-fill-column to centre text and wrap it at 79 columns. Can I get these 79 columns to be shown in a colour different from the rest of the window? Here is the relevant ...
Amery Gration's user avatar
3 votes
0 answers
56 views

How to have a right line continuation indicator on the right of `word-wrap`ped lines without "having a right fringe" and while having a left fringe?

In Emacs, I want to have line continuation indicators (the curly arrows by default) shown before or after my wrapped text (e.g. in the fringes). However: I don't want want to be able to tell apart my ...
habit's user avatar
  • 143
2 votes
2 answers
139 views

Disable Fontification in Org-Mode while Keeping Color Highlighting

I would like to ask a question about org-mode and font-lock-mode. I just started using Emacs and, since I am not a programmer, I use it mostly for writing and handling texts. And, I am quite ...
bman25's user avatar
  • 43
0 votes
0 answers
21 views

Using hi-lock-mode to change foreground colour of particular elisp comments

The following code uses hi-lock-mode to highlight certain comments beginning with ;; [. This changes the background colour. Instead of changing the background colour, I would like to change the ...
Dilna's user avatar
  • 1
0 votes
1 answer
38 views

Changing comment delimiter colour

I am using the following function to change the colour of the comment delimiter. Whilst the code works for a dark background, the colour is not changed when using a light background. (defun delimkl () ...
Dilna's user avatar
  • 1
1 vote
1 answer
33 views

How do I highlight using multiple faces with library `highlight.el`?

I want to highlight in multiple colors using highlight.el. I'm trying to use: (highlight-regexp regexp1) followed by hlt-next-face But it seems to be consistently using the same face. How do I get ...
Att Righ's user avatar
  • 745

1
2 3 4 5
9