Skip to main content
Share Your Experience: Take the 2024 Developer Survey
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
  • 825
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
  • 30.6k
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,649
15 votes

Disable enlarged org-mode header appearance

Okay I found a solution that worked for me. (defun my/org-mode-hook () "Stop the org-level headers from increasing in height relative to the other text." (dolist (face '(org-level-1 ...
lookyhooky's user avatar
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,170
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
  • 77.9k
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.2k
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
10 votes
Accepted

How can I find out what face I need to change in the mode-line?

M-x list-faces-display shows you all of the faces currently defined, including those with names mode-line*. It shows you the appearance of each face. And it lets you customize any of them - just ...
Drew's user avatar
  • 77.9k
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,541
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
  • 12.9k
8 votes
Accepted

Disable enlarged org-mode header appearance

Org headings are controlled by the faces org-level-1, org-level-2 etc. You can get to them via M-x customize-face. Unselecting the height attribute should set them to the default font size.
Tyler's user avatar
  • 22.4k
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,159
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,203
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
  • 77.9k
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.3k
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
  • 77.9k
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.5k
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

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,325
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
  • 77.9k
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

How can I find out what face I need to change in the mode-line?

On your current buffer, make sure you have no text selected and issue M-x customize-face. If no faces are selected, it should prompt you with Customize face (default `all faces'). Hit RET and you ...
zaile's user avatar
  • 463
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,452
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
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.3k
5 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,203
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,876
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
  • 11.9k

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