Skip to main content
20 votes
Accepted

Emacs Blue color too dark

Add frame-background-mode to your init file: (setq frame-background-mode 'dark)
Viesturs's user avatar
  • 845
19 votes

Emacs Blue color too dark

Put the cursor on the blue word, and say C-u C-x =. Find the face entry and click on its value. Then click on customize this face and change the foreground value to e.g. Cyan1. If you are in a ...
NickD's user avatar
  • 32.3k
16 votes

Is there a way to change color of active window's fringe?

Since you want "To better distinguish between focused window", you can use other ways to do that instead of just changing the active window's fringe color. I combine three ways to better distinguish ...
CodyChan's user avatar
  • 2,659
14 votes
Accepted

How to get/read face attributes?

You can use face-attribute. To match the example given, the following expression gets the trailing space background color: (face-attribute 'whitespace-trailing :background) face-attribute is a ...
Lindydancer's user avatar
  • 6,210
13 votes

Quickly Adjusting Text to DPI Changes

You can set the value of default-frame-alist, including its font parameter, conditionally, depending on the current monitor/display. (You can use function display-monitor-attributes-list to give you ...
Drew's user avatar
  • 78.5k
11 votes

Emacs Blue color too dark

Faces in Emacs can have different values, depending on display attributes such as the number of colors supported or whether they're displayed on a light/dark background. Emacs can guess the latter ...
wasamasa's user avatar
  • 22.3k
10 votes
Accepted

Cocoa Emacs 24.5 Font Issues (Inconsolata-dz)

Emacs doesn't allow fonts that have hyphens in them. I would rename the font to something that doesn't contain hyphens. You can do this using ttx. For example, assuming you have a font named ...
sid-kap's user avatar
  • 544
9 votes

How do I change the color of the prompt in the mini-buffer?

It's not obvious how to find out what face it is. The usual way is to put your cursor on some text and then use C-u C-x = but that's harder to do in the minibuffer. The other way I know of is to use M-...
amitp's user avatar
  • 2,591
9 votes

Changing faces one at a time, outside customize

set-face-attribute is the function you want. For example to make comments green and bold: (set-face-attribute 'font-lock-comment-face nil :foreground "Green" :weight 'bold) There are ...
erikstokes's user avatar
8 votes

Quickly Adjusting Text to DPI Changes

I'm using something similar to @gavenkoa (by pure coincidence also with a helper named my-dpi!) to make new frames get the right size, but calling on zoom-frm since I use that package anyway. It also ...
unhammer's user avatar
  • 1,201
8 votes
Accepted

something changes the default face in my .emacs

"Who's playing behind my back?" with respect to the most common choice of installing the GTK gui version of Emacs. The GTK build of Emacs supports GConf settings, which is what is causing the font ...
npostavs's user avatar
  • 9,233
7 votes
Accepted

Changing the Variable Pitch Font

It seems that function variable-pitch-mode hard-codes the use of face variable-pitch. I think your two choices (other than perhaps advising that function) are these: Use face variable-pitch. Just ...
Drew's user avatar
  • 78.5k
7 votes
Accepted

Highlight rectangle and non-rectangle selection at the same time

There’s no simple variable you can set to control this, but you can do it with some programming if you want. There is a variable called redisplay-highlight-region-function whose value is a function to ...
db48x's user avatar
  • 18.8k
6 votes
Accepted

Is there a way to easily see currently defined faces?

To see all faces currently defined: M-x list-faces-display. It does show a preview. It does not show the samples using the "default 'link' face". The Emacs manual, as usual, is your friend. C-h r i ...
Drew's user avatar
  • 78.5k
6 votes
Accepted

Why isn't face-remapping-alist permanent-local by default?

permanent-local is fundamentally a way to distinguish whether the variable's buffer-local value is really specific to this buffer or is specific to the mode currently in use in this buffer. Sadly, in ...
Stefan's user avatar
  • 26.6k
6 votes
Accepted

No colors for eshell?

Eshell is an independent command interpreter implemented in Elisp, so by default it should have nothing to do with your other dotfiles, such as ~/.bashrc. The custom prompt function you list works ...
Basil's user avatar
  • 12.5k
6 votes
Accepted

What is the correct way to unset :foreground color?

nil is not a valid attribute value for :foreground, which can be a string or unspecified*, see (elisp) Face Attributes: Apart from the values given below, each face attribute can have the value `...
npostavs's user avatar
  • 9,233
6 votes
Accepted

Combining diacritics not combining visually

For emacs to be able to combine successive characters, you need to be using a font that has support for both of the characters. As per the comments, in your case that was 'DejaVu Sans Mono'.
rpluim's user avatar
  • 5,385
6 votes
Accepted

Changing faces one at a time, outside customize

You can use custom-set-faces or custom-theme-set-faces, with a list of one face - no problem. Or you can use modify-face. Or, as @erikstokes mentions, you can use set-face-attribute. Note that the ...
Drew's user avatar
  • 78.5k
6 votes
Accepted

How do I change the font color of mode-line?

What you call the bottom bar is the "mode line". I recommend reading the first fews sections of the manual, especially this one to know the names of the various screen elements (this is not difficult ...
JeanPierre's user avatar
  • 7,475
5 votes
Accepted

How to overwrite properly a face for a particular theme

Well, finally I have a working solution, actually it was so obvious that I don't understand why it took me so long to find out. The answer is to use my previous solution that make use of the custom ...
joe di castro's user avatar
5 votes

Quickly Adjusting Text to DPI Changes

I made my config portable across different laptops/desktops with: (defun my-dpi () (let* ((attrs (car (display-monitor-attributes-list))) (size (assoc 'mm-size attrs)) (sizex (...
gavenkoa's user avatar
  • 3,502
5 votes
Accepted

Python mode - custom syntax highlighting

If you have a look into the python library (M-x find-library RET python RET) you see that the python-font-lock-keywords are constructed by the rx macro: (defvar python-font-lock-keywords ;; ...
Tobias's user avatar
  • 33.5k
5 votes

Emacs Blue color too dark

NickD has a good answer but doesn't update your menu bar which may also have the same dark blue (can you see what it says when you type ctrl + s?). This method will also fix hard to read menus. Run ...
Rick Smith's user avatar
5 votes
Accepted

Change background color of quote block

Customize variable org-fontify-quote-and-verse-blocks. From the documentation of org-fontify-quote-and-verse-blocks: Non-nil means, add a special face to #+begin_quote and #+begin_verse block. ...
Marco Wahl's user avatar
  • 2,906
5 votes
Accepted

Toggle text visibility

This seems to work for me. You type M-x disappear to hide the regular text, and M-x reappear to show it again. It does not hide text that uses other faces. Also, if you select a region with your mouse,...
John Kitchin's user avatar
5 votes
Accepted

Change color of org-mode checkboxes

@Drew was right: in some other part of my init.el, I had overwritten org-todo with custom-set-faces: (custom-set-faces '(org-todo ((t (:overline t))))) This seems to reset the :foreground property....
Timm's user avatar
  • 1,619
5 votes
Accepted

How to make new text highlighted as well?

The problem is that you're trying it out in fundamental-mode. As explained in the docstring of hi-lock-mode: [...] In buffers where Font Lock mode is disabled, patterns are applied using overlays; ...
Stefan's user avatar
  • 26.6k
5 votes
Accepted

error: Invalid face, org-level-1

The error message Invalid face comes from an internal C function lface_from_face_name_no_resolve within xfaces.c A face must be defined before an attribute thereof may be changed with set-face-...
lawlist's user avatar
  • 19.4k
5 votes
Accepted

How can I set a face/style in emacs for a quotation in org mode?

The variable org-fontify-quote-and-verse-blocks controls whether special faces called org-quote and org-verse are assigned to quote and verse blocks. It is nil by default, meaning that no special ...
orgtre's user avatar
  • 1,110

Only top scored, non community-wiki answers of a minimum length are eligible