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
0answers
37 views

Misusing small font size as subscript

For typing mathematical formulas in emacs I often run into the problem that certain characters are not available as subscript (or superscript) characters. Since I would like a simple solution without ...
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, ...
0
votes
2answers
34 views

Face setting doesn't work for client sessions

I wanted to change the colours of Anzu's counter, taking the foreground from the Isearch match background and the background from the fringes, like this So I evaluated (face-spec-set 'anzu-mode-line `...
0
votes
1answer
35 views

how to use link path to set the background face?

I would like to use a custom link, i.e. [[h:blue][blue highlighted text]], to create highlighted text. The background color of the highlighted text is specified by the path. I have (org-link-set-...
0
votes
1answer
20 views

Change font or point colour based on absolute path of the source file

This is a rare occasion when I need it, but I am trying to figure out a way to change colour of font/point based on the path of source file to easily distinguish which file I am editing when I am ...
1
vote
0answers
9 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 ...
0
votes
1answer
22 views

How to get the merged face attributes at point?

The appearance of a given character is determined by faces from various sources and face-remapping-alist. How to determine the properties Emacs ultimately uses after taking all sources into account? ...
0
votes
1answer
44 views

How to use faces to enhance text

I'm writing some very simple code to get data from a web api, i then parse the response and output the result in a buffer. By default this text is very flat, how can i add keyword highlighting that ...
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 ...
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 ...
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 ...
0
votes
0answers
19 views

changing faces for deadlines in org

Using this code (defcustom org-agenda-deadline-faces '((1.0 . org-warning) (0.5 . org-upcoming-deadline) (0.0 . org-upcoming-distant-deadline)) How do you replace "org-warning" ...
1
vote
1answer
99 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
481 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
2answers
752 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 "#...
9
votes
4answers
6k views

Disable enlarged org-mode header appearance

I am using org-mode on Macintosh GNU Emacs version 24.5.1 in GUI mode and the headers are enlarged. I would like to disable this feature so they rendered in the default font size. I have tried this... ...
7
votes
3answers
257 views

Change size of wavy underlines for HiDPI displays

I'm running emacs on Linux with HiDPI display and all X environment I successfully tuned to support it, but in emacs wavy underlines are still looking extremely thin (relatively to font size). I've ...
0
votes
1answer
923 views

Changing mode-line face when evil state changes

I'm trying to change the mode-line face box attribute to be the same color as the evil emacs state face, obviously updating it each time the mode changes. I've seen some things about using a post-...
6
votes
1answer
929 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 ...
0
votes
1answer
52 views

Changing text size doesn't work on all fonts in org-mode

I have the following in my config: ;; set a non programming font for text (when (member "Lucida Sans Unicode" (font-family-list)) (set-face-attribute 'variable-pitch nil :font "...
1
vote
1answer
46 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
2answers
150 views

Colored string in mode line

I have: (setq mode-line-end-spaces "string") That displays string in the mode-line. How can I get string in red there?
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 ...
0
votes
1answer
85 views

Display a horizontal underline on every line

I recently saw this image on r/unixporn. How can I recreate the 'notebook' effect: the broad line-height and underline of each line, but in Emacs (iiuc this is achieved using rxvt + pixmaps in Linux).
12
votes
2answers
623 views

How to change faces of org-mode links depending on the link type?

Org-mode offers a variety of different link types ([http], [file], [bibtex], [magit]...). However, they all get the same look defined by the face value for org-link. Is it possible to e.g. change ...
1
vote
1answer
65 views

Is it possible to have different color in between a specific patterns?

I am using \begin{comment} hello world \end{comment} in order to comment out text in AucTex mode. In general I am using different color for comments but when I use \begin{comment} [text] \end{comment}...
2
votes
0answers
65 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 ...
0
votes
0answers
20 views

AUCTeX highlight contents of comment environment as a comment

I sometimes use comment environment in my LaTeX documents. Is there a way to make AUCTeX display contents of this environment as a comment?
0
votes
0answers
27 views

modify existing overlay

How do I modify an existing overlay, more specifically, in spacemacs I have and the overlays are covering the all the parenthesis. Note that the overlays move depending on what inner set of ...
0
votes
0answers
35 views

emacsclient spending a lot of time resetting faces

When I launch emacsclient or make a new frame it spends ~2s in: - make-frame 312 42% - frame-creation-function ...
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 ...
7
votes
1answer
850 views

How to change face in particular theme locally?

The title says it all. How to change face in specific color theme locally, in my configuration?
1
vote
1answer
37 views

Connect open and close delimiters with a line

I wonder if emacs has something similar to this VSCode extension (Bracket Pair Colorizer 2) which does the following (screenshot below) which I find is a really helpful UI enhancement [ In the above ...
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 ...
0
votes
0answers
13 views

Fix line height of special keyword lines (set face for logbook sum)

I would like to make the lines with special keywords less disturbing, so I reduced the height of org-special-keyword. But the lines have a lot of space. This is not the case for the source-lines, ...
2
votes
1answer
23 views

Giving faces compliant names

The description of defface in (info "(elisp) Defining Faces") says that the name of a face should not end in -face. But most faces declared in font-lock.el do use the suffix -face. How does this fit ...
1
vote
2answers
462 views

Colors with enriched-mode

I am trying to use the enriched-mode for my personal documentation. I would like to colorize specific sections of my text for clarity. I can successfully do it with Edit/Text Properties/Foreground ...
1
vote
1answer
19 views

How can I refer to the system default (Windows) proportional font?

Let's say I want to write a package which uses proportional font. But I don't want to hardcode a specific font, because the user may not have it installed. How can I refer to the system default ...
3
votes
1answer
1k views

How to customize org-agenda-* faces in .emacs file?

I am trying to customize org-agenda-* faces such as org-agenda-date, org-agenda-date-today, and org-agenda-date-weekend in my .emacs file. Normally, I install the use-package package to lazily load ...
15
votes
4answers
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?
0
votes
0answers
41 views

Unexpected face for `org-ellipsis`

Loading the following setting in an emacs -q session, and open the org file below, (custom-set-faces '(org-tag ((t (:background "gray95" :weight bold)))) '(org-ellipsis ((t nil)))) test.org #+...
2
votes
0answers
101 views

How to display only leading spaces in whitespace mode

I've been having trouble getting whitespace to visualize properly. Specifically for 'spaces' I'd like to only display leading spaces, but turning on space white space visualization includes all spaces,...
0
votes
1answer
21 views

Default face doesn't specify all attributes?

In the elisp manual, it says the default face must specify all face attributes. However, running #+BEGIN_SRC emacs-lisp :results pp (face-all-attributes 'default) #+END_SRC #+RESULTS: #+...
0
votes
0answers
24 views

applying an underlined font-lock-face style to source code

I'm trying to build an interactive query builder for tree-sitter in Emacs with highlight for matches as underlined text instead of overlays. So far I nailed most of the code to accomplish this, the ...
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, ...
10
votes
3answers
3k views

Quickly Adjusting Text to DPI Changes

My laptop has a 4K screen therefore a very high DPI, much higher than my external monitors. So when I switch from using external monitors to the builtin laptop screen I would like to quickly scale the ...
9
votes
3answers
939 views

How to set the foreground color of the cursor face?

I tried to set the foreground color of the cursor face, but it does not seem to work. Setting the background color works fine, but setting the foreground color does not have any effect. I would like ...
0
votes
0answers
10 views

Color coding for org-mode structure template breaks at three levels of embedment

As indicated by the title above, the color coding for org-mode structure templates breaks at three levels. Any way to fix this?
0
votes
1answer
109 views

How do I change the highlight color for selected texts on isearch?

When I search a text on isearch due highlighed color it is not readable. Following line does not have any affect on the main selected word on the isearch: (set-face-attribute 'lazy-highlight nil :...
1
vote
1answer
78 views

Change the color of ivy-current-match depending on the caller

When using ivy, say I want the current match to be red when calling counsel-M-x, but blue when calling counsel-find-file. Is there a simple way of changing ivy-current-match depending on the function ...

1
2 3 4 5 6