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
1answer
95 views

Load custom highlighting after colorscheme change

I am a Vim user and i recently decided to try Emacs Spacemacs, i have a problem setting up custom highlighting, i set some lines like the following in my .spacemacs (i guess it's the same problem in ...
3
votes
1answer
483 views

Change background color of quote block

I have a theme in which I specified how my source blocks and quote blocks look: `(org-block ((,class (:foreground ,fg3 :background ,"#fffce9")))) `(org-block-begin-line ((,class (:foreground ,"#...
0
votes
1answer
75 views

Setting faces in a uniform way

These statements lets you set foreground and background colours in a straight forward syntax: (set-face-foreground 'font-lock-constant-face "brightwhite") (set-face-background 'font-lock-...
2
votes
1answer
220 views

Which faces do Ivy/Counsel use in the minibuffer?

Which faces are being applied to the indicated text, i.e. the strings 3114, M-x, and C-x C-c, in the following screenshot? I am using the packages Ivy and Counsel, in case that is relevant.
1
vote
2answers
240 views

Change colours for character differences for diff-mode

I've changed my diff-mode colours according to this article, but the character-based differences are shown in the original(?) and very bright colours, making them quite unreadable. How do I change ...
1
vote
0answers
86 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 ...
3
votes
0answers
143 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?
0
votes
1answer
37 views

Change the block background color

My question is how to customize this kind of blocks' background color?
1
vote
1answer
44 views

Temporarily syntax highlighting combined with query-replacements

In latex-mode many macros comes with syntax highlighting. For example: where the argument of the command/macro \bibitem (Fisher:99) has font-lock-constant-face. I need to do something similar with ...
1
vote
1answer
473 views

Spacemacs change line background color when has comment

I currently have a strange behave when my code has comment on Spacemacs. Making it bad to read a file with a lot of comments Anyone knows how to change this behave? I tried to search about it and ...
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?
2
votes
1answer
68 views

Color problem on the bottom right corner?

I am using terminal emacs. Please see the screenshot: There is a dark area which is not matching with the background in the bottom right corner of the screen. What is the face for that? How do you ...
2
votes
1answer
112 views

How can I get 'face' functions in emacs to show a gradient colour?

I want to change the emacs fringe to a gradient of two colours. (set-face-background 'fringe <gradient>) As set-face-background requires a colour name or hex, I'm unsure of how I can get it to ...
1
vote
0answers
213 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, ...
2
votes
1answer
62 views

How to customize face when use 'org-edit-latex-environment?

When use org-edit-latex-environment(which opens another buffer so latex source code can be edited in more sophiscated environment, e.g. LaTeX) in org-mode, the source block will be highlight as yellow ...
1
vote
0answers
108 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
217 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 ...
2
votes
1answer
79 views

How do I change the Magit section heading background color?

I'm trying to customize the look and feel of my Magit setup. How do I change the background color of the section heading below? In particular, I'd like to change the black background color next to ...
7
votes
2answers
1k views

Emacs Blue color too dark

Emacs blue (on dark background) is too dark. classA is readable with difficulty in the example below: How to fix the dark blue colour?
1
vote
2answers
401 views

Can I set a custom face conditionally?

Apparently the correct way to set the default font is the following: (custom-set-faces '(default ((t (:family "Raize" :foundry "raster" :slant normal :weight normal :height 120 :...
0
votes
1answer
124 views

Cannot set fringe foreground color

I want to change the foreground color of my fringes, in my theme file. I changed (line 84): - `(fringe ((t (:foreground ,bisque-fg :background ,bisque-bg)))) to + `(fringe ((t (:foreground ,...
4
votes
2answers
704 views

What is the correct way to unset :foreground color?

For better experience color-identifiers-mode recommends turning off colors for everything. The example in README does it by setting :foreground of faces to nil, which kinda works. However doing it ...
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 ...
1
vote
0answers
129 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 ...
2
votes
1answer
157 views

Documentation for mode-line-emphasis and mode-line-interactive

I'm seeing mode-line-emphasis and mode-line-inactive used in color themes to change the mode-line face value for used and unused buffers. describe-function and describe-variable don't have an entry ...
1
vote
2answers
56 views

How to display (mask) a certain character as another

I want to display every & character in my code as a λ instead. But I don't want the file to be changed. It must be just a "visual effect". & Ampersand U+0026 Unicode λ Greek Small Letter ...
1
vote
1answer
123 views

customize-face for display-graphic-p only

I run graphical GNU/Emacs on macOS and also emacs in Mac Terminal installed via Homebrew. I would like to customize the default face for only the graphical display. I used M-x customize-face default,...
1
vote
0answers
293 views

How to change parens color?

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

Change modeline background when in normal evil mode?

how do I change the background of current line when in (evil) normal mode? I used it in Vim to be able to tell when I am in normal mode or not. (I am using the terminal app and I prefer to keep the ...
0
votes
1answer
361 views

How to dynamically alter defface foreground and background?

In realgud, there are fringe indicators used to show what position the debugged program is stopped at. However the face for the bit map is statically created and the background/foreground colors for ...
0
votes
0answers
69 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)
1
vote
1answer
784 views

Python mode - custom syntax highlighting

I am an Emacs newbie and trying to work out how to implement custom colors. Currently I have a conditional statement and a while statement which both use the same face (font-lock-keyword-face). Is ...
3
votes
0answers
140 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 ...
2
votes
0answers
258 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
1answer
461 views

No colors for eshell?

I have the following in my code to customize eshell: (setq eshell-prompt-function (lambda nil (concat (propertize (eshell/pwd) 'face `(:foreground "blue")) (propertize " $ " 'face `(:...
1
vote
2answers
508 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
2answers
97 views

Let bound face-attribute locally

How can I let-bound a face-attribute locally. E.g. I want to: (set-face-attribute 'query-replace nil :background "OrangeRed3") (perform-replace "bar" "foo" t t nil 1 nil (point-min) (point-max)) and ...
2
votes
0answers
87 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
77 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 ...
1
vote
1answer
286 views

Text background is a bit lighter than emacs' background color

If you can't see the screenshot in full resolution, click here So you may or may not see that the background color "behind" the text (including the linum) is lighter (#20292D) than the window's ...
5
votes
0answers
107 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 ...
0
votes
0answers
45 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 ...
1
vote
1answer
200 views

What is causing background colors to blend?

I'm using ivy which defines two faces that can highlight matches, ivy-current-match and ivy-highlight-face. It's possible that both can be applied to one match. I've noticed that in some cases the ...
6
votes
1answer
475 views

something changes the default face in my .emacs

Debian Sid, emacs25, cinnamon 3.2.7 In my ~/.emacs I have (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init ...
0
votes
2answers
277 views

After installing an icon font, propertize still show unknown characters

I'm trying to use custom icons from https://materialdesignicons.com/. (defface mdi-face `((t (:family "Material Design Icons"))) "Face for Material design icons.") (insert (propertize "\f004" '...
2
votes
1answer
577 views

Monospace font for calendar buffer and tables (in org-mode), proportional font in main buffer for text paragraphs

I like having a proportional font in main buffer for writing plain text paragraphs (e.g. Georgia), but calendar buffer (M-x calendar) in org-mode looks funny (not properly aligned) if the font isn't ...
4
votes
1answer
45 views

How do I tell how many lines of a specific face fit in a window?

I'm making a presentation mode where I want to vertically center some text in the window, which is the only window in the frame. I'm using a custom face so I can control how large the font is. To ...
1
vote
1answer
120 views

Change the color of the wrap around arrow

So I would like to change the color of the arrow that shows the text is being wrapped. Specifically the red arrow shown here: I have tried searching myself and the closest I came is finding out the ...
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 ...
0
votes
1answer
24 views

Apply a background to code with font-lock

I have a command file that uses syntax such as -TAG <ARGS> -TAG- to pass arguments to a sub program. I want to Highlight everything between the opening and closing tags with specific background ...