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
7
votes
1answer
182 views

Combining diacritics not combining visually

The first two characters in the left buffer are LATIN SMALL LETTER A and COMBINING CIRCUMFLEX ACCENT. Together they should display as â, just like LATIN SMALL LETTER A WITH CIRCUMFLEX, â. However, ...
0
votes
0answers
80 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 $ ...
1
vote
2answers
177 views

Why are code blocks and code literals displaying with large face in markdown

In markdown mode, all of the fenced code blocks and inline code literal strings are displaying with this very large font. The size is large, and also I'm pretty sure it isn't the same font as the ...
0
votes
1answer
628 views

some set-face-attribute not being applied when I create a new frame using C-x 5 2

I've a few set-face-attribute statements inside eval-after-load blocks inside my zenburn theme configuration. These are working fine when I startup emacs using emacsclient. But, when I create a new ...
0
votes
1answer
71 views

Change face for non-selected ivy items

I'd like to change the foreground color of non-current ivy items. The only way that I've found to do that so far is to define my own ivy-format-function like this: (defun aj/ivy-format-function-line (...
0
votes
1answer
53 views

enlarge font of functions only in C code

I am trying to do exactly this for my C code, but once I edit latex, the setting is still active in uncomfortable places. I need to preserve the setting once I exit emacs and in all the buffers with C ...
0
votes
1answer
106 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
526 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
76 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
255 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
317 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
157 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
39 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
2answers
545 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
31 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
75 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
118 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
238 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
66 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
121 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
223 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
92 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 ...
10
votes
3answers
2k 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?
2
votes
2answers
424 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
145 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 ,...
5
votes
2answers
793 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
65 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
151 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
172 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
141 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
314 views

How to change parens color?

How to exclusively change color of pairs ()}]"'..)? As of now their face is default.
1
vote
1answer
236 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
414 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
71 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
904 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
156 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
270 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
534 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
599 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
106 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
88 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
81 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
304 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
114 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
46 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
218 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 ...
7
votes
1answer
521 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 ...