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
1answer
29 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
23 views

image-dired: Change thickness of cursor

On a hires screen I find it really hard to see on which image the cursor currently is, because the rectangle around the image is very thin. Is it possible to increase the line width of that rectangle? ...
1
vote
0answers
28 views

Org-link font size in the heading

I often use org-links in headings, e.g.: *** Heading [[foo]] **** Subheading [[bar]] And I use different font-sizes for different levels. Now, I would like the face of the link to be of the same ...
1
vote
1answer
183 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
498 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 "#...
0
votes
1answer
12 views

Org-mode define face for pandoc citation syntax

I would like to set a new face in org-mode for pandoc citation syntax which looks like this: [@bibtexkey{555-563}] Custom face: (defface pandoc-citation-face '((t :foreground "yellow")) "Face ...
6
votes
1answer
140 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 ...
0
votes
1answer
768 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
690 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 ...
2
votes
1answer
738 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 ...
0
votes
2answers
24 views

Documentation for face-attributes-as-vector

I try to find the documentation for the function face-attributes-as-vector or any other function which gives my access to the face definition. Emacs contains just the following information: face-...
1
vote
2answers
39 views

Why is face-attribute interfering with isearch?

Question: Why does face-attribute interfer with isearch filter predicates? The following code is part of my answer to the question about searching for bold text. If I set the variable isearch-face-...
0
votes
0answers
13 views

Why is my custom theme properties for evil-search-highlight-persist-highlight-face not being reflected on that face?

I am using spacemacs with evil mode. If I type /example, then ENTER, I will see all words matching example highlighted on the page. If I move my cursor within one of those example words and type ...
0
votes
0answers
41 views

Is frame background considered a face?

I would like to know if Emacs treats empty portions of the frame as faces. I want to know because I wonder if the background of an Emacs frame is drawn separately of other elements on the screen. ...
8
votes
1answer
283 views

Coloring mu4e headers based on title content

I'd like to color the messages in my *mu4e-headers* view, depending on which mailing list they come from. I'm rather new to emacs face alterations, and I didn't see anything that looked relevant for ...
2
votes
1answer
75 views

Showing org headings in uppercase

I found coloured headings disturbing so I (setq org-level-color-stars-only t). But now the headings are too similar to regular text, and their face is default so they can't be formatted by changing a ...
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?
0
votes
1answer
23 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
47 views

Avoiding partial lines at bottom of screen

Is there a way to avoid only partially visible lines at the bottom of the screen, such as in this picture? Perhaps this could be achieved by adding some empty space below the minibuffer and echo area,...
4
votes
2answers
467 views

How to make mode-line text look like a link/button on hover

What face/text/other property should I use to have mode-line text look like a button/link/stuff to click on while I am hovering over it with the cursor? Some examples: different background, 3D-like ...
0
votes
0answers
79 views

Transparent title-bar not really transparent on Emacs 26.1

I'm using the emacs-mac port installed via Homebrew in macOS 10.14.4. (I installed it with the flag --with-natural-title-bar). I enabled the transparent title bar feature with defaults write org.gnu....
1
vote
1answer
38 views

Buffer local transient-mark-mode?

I like transient-mark-mode and I like that it is activated by default. But there are a few specific buffers where I'd like to deactivate it. Unfortunately, that minor mode is either on or off globally,...
0
votes
0answers
43 views

Change org-priority faces when DONE

Is there a way to change the color of org-priority face once the item is marked as DONE? Currently, the entire line aside from the item's priority gets grayed out once the item is marked as DONE.
2
votes
0answers
31 views

Why does setting the 'face property trigger fontification?

I'm trying to write a major mode for a programming language with JSX based syntax. Here's a minimal implementation. (defun example-forward-parse-jsx (start-pos limit) "Move point past the JSX ...
8
votes
4answers
227 views

Is there a way to determine the face at frame x / y (mouse position)?

When trying to theme certain modes, it's not possible to place the point on the themed item (e.g. to do C-u C-x =) and identify the face used. My thought is to use the mouse to identify the face used,...
1
vote
1answer
49 views

How to change font size only for the buffer *Org Export Dispatcher*?

I'm using emacs with a large font, however I do not need the font to be too large on certain buffers and/or modes. For example, when I use neotree I use a different font and a smaller size, I do that ...
2
votes
2answers
108 views

How to delete a face

I was experimenting with face definitions and created a number of "test" faces that were meant to be temporary. At the end of the experiments, I wanted to clean up after myself, so I attempted (...
3
votes
2answers
532 views

Get foreground color of face at point

I am writing a function to get the foreground color of the face at point and am thinking that Emacs may already provide a better method than the one I'm composing? I am going to be using this ...
2
votes
2answers
165 views

How to customize DONE headlines per-file in org-mode?

I would like to customize the headline and keyword inside of an org file. In this question is shown how to change the faces of each keyword, but not the headlines. For the moment, I haven't achieve ...
1
vote
1answer
252 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 ...
0
votes
2answers
45 views

How to make new text highlighted as well?

Run in *scratch*: (progn (fundamental-mode) (hi-lock-mode 1) (highlight-regexp "." 'hi-pink)) Result: If I add text it is not highlighted depending on where I add it: How can I make all newly ...
2
votes
1answer
60 views

Fastest way to draw pixels in Emacs

I'm currently working on a CHIP-8 emulator. This platform requires me to draw 64x32 black/white pixels, ideally at a speed between 30 and 60 frames per second. There's an extension to it that ...
1
vote
2answers
103 views

Org-mode: How to display current time record in another color?

I'm still very new to emacs and currently use it on the terminal to track my work time in org-mode. ** Save the world :LOGBOOK: CLOCK: [2019-02-14 Do 10:24] CLOCK: [2019-02-14 Do 08:51]--[2019-02-14 ...
0
votes
2answers
132 views

Change foreground color of a region (temporarily)

I need to change the "OBJECT" string foreground color (let's say "red") in all the occurrences of the string "\command{OBJECT}" in my buffer and I need to restore the original foreground color at the ...
0
votes
2answers
105 views

How do I set latex face attributes in init.el?

When I try to put (set-face-attribute 'font-latex-italic-face nil :foreground green) (set-face-attribute 'font-latex-math-face nil :foreground orange) (set-face-attribute 'font-latex-script-char-...
1
vote
1answer
52 views

My theme's default face is ignored

I recently changed my Linux distribution (from an old Opensuse 13.1 to Linux Mint 19, which comes with "GNU Emacs 25.2.2 of 2017-09-22, modified by Debian"), and now my very basic theme is not working ...
7
votes
1answer
263 views

Adding box around text without changing the text width

The documentation of Face Attributes suggests that adding a line-width of -n to the box attribute will draw a line of width n whose top and bottom parts occupy the space of the underlying text, ...
0
votes
2answers
72 views

Size of default face from environment variable

I'd like the size of the default face be read in an environment variable. Currently my .emacs reads the frame size from the EMACS_HEIGHT var thanks to the following code in the (custom-set-variables ....
1
vote
0answers
66 views

Display done org-habit habits in a different face

I'm experimenting with org-habit and currently have org-habit-show-all-today set to t so I can see a habit even when I've done it for that day. I'm doing that because I want to get the little reward ...
0
votes
0answers
41 views

Change the color of the file-name as it appears on an Emacs buffer mode line

I just downloaded the hemisu theme for Emacs which works very nicely. One flipside of the theme is that the file-name shows up in very lightly colored letters, and so becomes difficult to read. This ...
1
vote
0answers
68 views

Make text Invisible with font-lock-keywords

I'm interested in changing my org-mode buffers to have a better looking logbook. My ideal state to end up in is that text that looks like this: - State "WAITING" from "WAITING" [2018-11-16 Fri ...
0
votes
1answer
92 views

Setting font facename for emacs and xterm under linux

How can I set the font name and size for Arabic letters in both emacs and xterm? Thanks
3
votes
2answers
185 views

Changing faces one at a time, outside customize

Is there a way to change faces one at a time, outside of customize? In my custom-file I see a big blob of face customizations that starts with: (custom-set-faces ;; custom-set-faces was added by ...
0
votes
1answer
167 views

Change list bullets in org-mode depending on embedding level

Is it possible to change the face of list bullets dynamically, mimicking the behaviour of WYSIWYG textprocessors like MS Word?
4
votes
2answers
142 views

hl-line face used as default in 26.1

When I use emacs 24.3.1 and run /usr/bin/emacs -Q Then M-< followed by M-xglobal-hl-line-mode and M-xdescribe-face, emacs asks me Describe face (default `font-lock-comment-delimiter-face'): But ...
0
votes
0answers
21 views

Finding a fold face

Enter TeX-mode (AUCTeX), type \emph{test} and then C-c C-o C-b. This will 'fold' the macro and show only test in a 'fontified' manner. For me this means blue, italic, and bold. But I am unable ...
1
vote
1answer
60 views

Custom function to apply bold face to a region

I know there is a function called: facemenu-set-bold, which is bound to M-o b, but I'm trying to write my own as an exercise. Here is my code: (defun my-function() "this is my function" (...
2
votes
2answers
135 views

How to make tooltip background transparent?

I want to make the tooltip background somewhat transparent, say, change it alpha value to 0.5. I find these code in tooltip.el.gz (defface tooltip '((((class color)) :background "lightyellow" ...
0
votes
1answer
45 views

Configuring faces in LaTeX mode

I use alot the M-o i shortcut (which, according to the key description, runs the command facemenu-set-italic) to emphasize parts of my text. Over the years I have changed several computers (hence OSes ...
4
votes
2answers
309 views

Change color of org-mode checkboxes

I'd like to change the color of unchecked checkboxes in org-mode. To be exact, I want them to be displayed in the color of TODO keywords. So I've tried to tackle this using custom-set-faces and :...