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
100 views

Face color attribute incorrectly applied

I want to modify the region's foreground regardless of syntax highlighting. (set-face-attribute 'region nil :foreground "#656555") But this is what I get (see sample): C-u C-x = gives: ...
1
vote
1answer
129 views

Why can't I use a variable when defining the color to draw a box with

I have defined 2 variables as such: (defconst zenburn/bg-1 "#2B2B2B" "Zenburn palette: bg-1.") (defconst me/helm-header-color zenburn/bg-1 "Custom palette: helm headers.") (set-face-attribute 'helm-...
5
votes
1answer
414 views

Why are leading spaces colored before comments in makefile-mode?

In Makefile mode, leading spaces are fontified in makefile-space face (bright pink without customization), when there is no other text on the line. It seems to indicate incomplete lines, and makes ...
1
vote
2answers
314 views

Trying to refactor the code where I customize faces

I'm trying to switch to another Emacs theme, and I noticed I had several hard coded color strings which I used with my previous theme. I'm looking for a way to use :inherit and thus have those hard ...
4
votes
2answers
1k views

How to modify-face for a specific buffer?

I work with a lot of tabular data files and use stripe-buffer.el make them easier to read. But I also work with more than one, so I'd like to make it easier to distinguish among them as well and want ...
0
votes
2answers
524 views

Nice TTY window borders in 24.4

I've seen snippets like this: (set-display-table-slot standard-display-table 'vertical-border (make-glyph-code ?┃)) That claim to make emacs use a prettier window divider character. However, ...
2
votes
1answer
539 views

How to use the highlight-chars.el package?

How can I use the highlight-chars.el package mentioned here (and here's its code) to highlight custom characters? Specifically, I'd like to highlight the unicode directional formatting characters for ...
5
votes
1answer
207 views

Underlining in org-mode links with multiline descriptions?

Q: How can I stop underlining through the left "margin" in links that extend over more than one line? The face org-link inherits from the face link, which has the underline attribute set to t (or at ...
6
votes
2answers
1k views

How can I determine the width of characters on the screen?

Specifically, I'm interested in the width of characters in the default font assuming that the default font is mono-spaced. From reading the documentation, I got the impression that this should give ...
1
vote
1answer
168 views

Different results using color-theme-select versus color-theme-<theme-name>

I am using the color-theme package to manage the colors in Emacs 24.3.1. I used the command color-theme-select to try different color themes until I found one that I liked. In this case I found the ...
7
votes
1answer
174 views

How does AucTeX display superscripts?

latex-mode is has a nice display of superscripts and subscripts. Not only are they reduced in size, but they are respectively raised and lowered a bit relative to the current line. Q: How can I make ...
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 ...
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 ...
2
votes
3answers
453 views

Persistent effects on overwriting faces

Using Emacs 24.4 with projectile and helm I am trying to customize some faces of the grep results. ;; Helm face customization (M-x helm-colors) (set-face-underline-p 'helm-selection nil) (set-face-...
3
votes
1answer
537 views

Override syntax highlighting with color of hex code.

From EmacsWiki: Hex Colour, it is explained how to get in-line syntax highlighting of hex code, and other formats of color. For instance with (defvar hexcolour-keywords '(("#[abcdef[:digit:]]\\{6\\}...
10
votes
1answer
1k views

How to customize syntax highlight for just a given mode

I would like to change the syntax highlighting in my lua-mode.el without affecting other major modes. Just as an example, I would like "key words" like if, then, else to be in bold and blue typeface ...
6
votes
5answers
815 views

Highlight \n and %s “inside” strings

Is it possible for Emacs to highlight backslash escape (e.g. \n) and format keyword (e.g. %s) inside string, without messing up current modes' faces? Like this:
5
votes
1answer
261 views

In table-mode, how do I change the face used for cells?

If I make a table (with M-x table-insert), the background color is a dark blue, and the text color is a light grey. I'd like to make the face different, but I'm not sure what face I need to change. ...
6
votes
1answer
517 views

How can I set face for echo-area message

When I print messages using (message (propertize "text" 'face 'some-face)) properties get printed as text: #("text" 0 4 (face some-face)) How can I have faces displayed properly?
9
votes
2answers
851 views

Can I change the background color of the inactive minibuffer?

I tried it with the following settings: (add-hook 'minibuffer-setup-hook (lambda () (make-local-variable 'face-remapping-alist) (add-to-list 'face-remapping-alist '(default (:...
5
votes
5answers
7k views

How do I get my initial frame to be the desired size?

I have the following in my .emacs file: (when window-system (set-frame-position (selected-frame) 0 0) (set-frame-size (selected-frame) 91 63)) The value of 63 is supposed to make my initial ...
20
votes
1answer
481 views

how to prevent faces from bleeding onto surrounding areas of buffer?

Q: How do I keep org-mode link faces from bleeding over into the ... selective display characters at the end of a folded header? This is a visual tick that drives me a little nutty. When, in org-...
14
votes
2answers
3k views

How can I set different font sizes for buffers and for the mode-line?

I have this line in my init.el file to set the size of the font in all frames: (push '(font . "DejaVu Sans Mono-10") default-frame-alist) It works but i'd like to have a bigger font in all buffers ...
9
votes
2answers
2k views

How can I fill the entire line number bar with a custom background color?

In the screenshot below I have simply set the background of the linum face to some color, however there is a blank region at the end of the buffer and there are gaps between the lines when line ...
14
votes
3answers
464 views

describe-face character not under / unreachable by the cursor

I like using a combination of describe-face and customize-face to adjust the appearance of my working environment. Sometime this workflow fails when I want to change the face of a location I can not ...