Questions tagged [themes]

Questions about using, creating, and modifying color themes and custom themes.

Filter by
Sorted by
Tagged with
27
votes
5answers
40k views

Emacs won't load theme on startup

I've installed the solarized theme package via MELPA. I can select one of the two solarized themes via `customize-theme and it activates it. When I save the theme settings it adds the following to my ...
27
votes
2answers
8k views

How to reset color theme?

When I'm trying different color themes out, it seems if a particular element is not defined in the new theme the old theme value is retained, and this leads to some clashing. This happens in emacs 24 ...
23
votes
5answers
10k views

How do I change portions of a custom theme?

I'm using one of the pre-defined custom themes that come bundled with Spacemacs (zenburn). How can I modify specific portions of the theme, for example just change the font color used for comments ?
22
votes
1answer
1k views

How to customize background color for some web pages opened with eww?

I just installed emacs 24.4 and I've started using eww. But one annoying thing is that when I visit google.com I get a grey background which makes text really hard to read for my theme. This is how it ...
21
votes
3answers
4k views

Different themes for terminal and graphical frames when using Emacs daemon

I'm trying to achieve the following behavior in Emacs24: I like to use a different theme (solarized-dark vs. solarized-light) depending on whether I connect to the running server with a terminal ...
18
votes
1answer
10k views

Different theme for -nw (terminal)

I am running emacs (24.5.1) on Mac osx and using the solarized theme. For the gui version, the theme works well. If I run the application with the -nw flag: /Applications/Emacs.app/Contents/MacOS/...
18
votes
3answers
831 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 ...
16
votes
3answers
2k views

Is there any way to run a hook function only once?

The context I'm using the after-make-frame-functions hook to load properly the themes in an emacs client/server configuration. Specifically this is the code snippet that I use to make that (based in ...
12
votes
2answers
3k views

Emacs always ask to trust colour theme at startup

My Emacs always prompts me if it should trust selected colour theme or not. I always answer y and y to trust and remember my choice. I'm loading colour theme manually: (load-theme 'my-favourite-theme)...
11
votes
1answer
4k views

Stop emacs asking if a theme is safe

I set my theme with load-theme in a use-package macro loaded at startup. The theme has also been installed with use-package, from the repository. At each start emacs asks me if I really want to load ...
11
votes
6answers
3k views

Make a function to toggle themes

How could I make an interactive function to toggle in between two color themes? From what I have been able to find there is no variable set to what color theme is currently in use, in fact several ...
9
votes
2answers
6k views

Is there a transparent theme?

I've been looking for themes which are transparent, but I didn't find any. Is there someone who uses a transparent theme?
9
votes
1answer
921 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, ...
8
votes
2answers
1k views

custom-theme-set-faces does not work in emacs 27

I have some custom theme settings like (package-initialize) (load-theme 'leuven t) (custom-theme-set-faces 'leuven '(Man-overstrike ((t (:foreground "red3" :bold t))) t) '(Man-underline ((t (...
8
votes
4answers
361 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,...
8
votes
4answers
2k views

Change mode-line-buffer-id face for inactive windows

Is there an Emacs face that can be used to control the colour of inactive buffer names? Normally when setting the face mode-line-buffer-id all windows are affected. In this example the mode-line ...
7
votes
2answers
201 views

Why expression fails in init file, but works fine during session [duplicate]

I want to understand why an expression of the form (load-theme 'my-kewl-theme t) fails1 when run as the last expression in my init (~/.emacs) file, but works fine if I evaluate it as soon as soon as ...
7
votes
2answers
2k views

Use a different color theme for eww buffers

I saw this question: How to customize background color for some web pages opened with eww? but this won't work for me. I'm trying to read Wikipedia pages and in many places Wikipedia uses images to ...
7
votes
2answers
3k views

How to change the mouse pointer colour?

I am using the ample theme and I quite like it, but I can't see the mouser pointer when moving over emacs and emacs is activated; as the emacs background and the mouse pointer are black, I would like ...
7
votes
3answers
5k views

customize colors of level in org-mode

I would like as said in the title customize colors of the differents levels in org-mode. I have tried from the customize-group menu then org-face but it looks like I can't change colors there. So, I'...
7
votes
1answer
1k 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?
7
votes
1answer
3k views

Emacs (as daemon) doesn't load theme

Related: Emacs: GUI with emacs --daemon not loading fonts correctly My init.el contains the following lines: (require 'darktooth-theme) (load-theme 'darktooth t) If I start Emacs with $ emacs ... ...
7
votes
1answer
255 views

Theme background with opacity? Or theme callback?

Two related questions Is it possible to use opacity while theming in emacs? I mean defining theme which - for example - would add 25% of blue to the background color of elements it is applied to. Or ...
7
votes
1answer
911 views

Is there a universal 'after-theme-load' hook?

I would like to set several face variables for use with any theme in my personal init-file. Is there a hook I could use to insure it is theme independent?
6
votes
3answers
958 views

Different themes in different modes

I would like to do the following: load some theme when working on a particular kind of source file (say, Haskell), but elsewhere use a different "default" theme. I naively imagine that this is ...
6
votes
1answer
11k views

Symbol's function definition is void: use-package

I am unable to get the darcula theme working. I have a tried moving (package-initialize) and (require 'package) but I am unable to get it working. Here is my init.el file. ;; Added by Package.el. ...
6
votes
1answer
796 views

How to change mode line color based on host?

For terminal, there is an app called byobu which shows different mode line based on host. If I open terminal in system 1, mode line will be like this. If I ssh into system2 from system1, mode line ...
6
votes
2answers
434 views

Using different theme on tramp buffers (and buffer-related themes in general)?

Is it possible to configure emacs so it uses different theme for tramp buffers than for defaults? Say, I use twilight by default, but while editing sth via ssh I'd like to switch to pastels-on-dark... ...
6
votes
1answer
2k views

How do you change the text cursor height and thickness?

I would like to change the shape of the cursor to something like the following image: It's a bit taller and thicker than the default one. How do I do that?
5
votes
3answers
1k views

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

I have a UI element in my mode-line provided by which-func-mode. I also have it in my header-line, pictured below (the blue "render" text): How can I find out which face this is so I can style it to ...
5
votes
2answers
15k views

how do i install “solarized-theme”?

first i do this in a terminal: $ git clone git://github.com/altercation/solarized.git, that creates a directory in my home called "solarized", after that i add this 2 lines to my init.el (add-to-list ...
5
votes
1answer
2k views

How to get the package name of current using theme?

I'm using a solarized-light theme, it is great. As you may notice, there are several packages provide the solarized theme: color-theme 20080305.34 installed install color ...
5
votes
1answer
249 views

Why are custom themes not usually byte-compiled?

Three pieces of evidence suggest custom themes should not be byte-compiled: All built-in themes under etc/themes specify no-byte-compile: t. The function custom-available-themes considers only .el ...
5
votes
1answer
587 views

How to detect the term color support inside of a emacsclient session?

I run a emacs daemon on boot as a OpenRC service without info about terminals. When I plug a different terminal on emacsclient so, I don't have env variables instead that was generated inside of emacs ...
5
votes
1answer
2k views

Where is the default color / custom theme defined?

When you start Emacs with emacs -Q, there appears to be some sort of default color scheme. Where are these colors defined? The default theme does not show up with M-x customize, nor can I find it in ...
5
votes
1answer
203 views

Limiting theme to frame (for emacs 24 themes)?

Is it possible to have separate theme for every emacs frame (for new, emacs 24, themes)? For old themes, there was color-theme-is-global, but I can't find anything similar for new themes...
5
votes
0answers
2k views

How can I correct an “Invalid face” error?

Issuing M-x org-html-htmlize-generate-css gives the error Invalid face: font-lock-string What does this error mean and how can I correct it? Issuing $ grep -r "font-lock-string[^-]" ~/.emacs.d/ ...
4
votes
3answers
2k views

Inverting colors in emacs

Is there any extension or easy way to invert colors in emacs? I tend to show code a lot through screen sharing and often a light theme is better while the dark is more comfortable for me to work ...
4
votes
1answer
378 views

Emacs theme not covering up the entire terminal window. The Ubuntu purple terminal background is showing on the edges

At the bottom of the screen when emacs is open there is a strip of purple, meaning that emacs in terminal isnt maximizing to the full size that the terminal window allows and thus the background from ...
4
votes
1answer
3k views

Why does load-theme reset the custom-theme-load-path?

For some reason, I need to manually update the custom-theme-load-path list after every update of a theme like smart-mode-line or leuven-theme. Looking for a solution, I came across this SO post. Here ...
4
votes
2answers
206 views

Shifting Emacs Theme from one Computer to Another

I am a little new to emacs and have managed to get the color theme to my liking. However, I want to be able to use the same theme on a different machine and have been struggling to get it to work. I ...
4
votes
1answer
504 views

Is there a way to easily see currently defined faces?

I often find that I need to define faces for custom commands. I prefer to inherit from faces defined by the current theme, to keep things visually consistent. M-x list-faces-display lists the faces, ...
4
votes
4answers
5k views

Setting up a theme using use-package

I'm doing a new setup so that I can have an init.el on my dropbox as a one stop shop for my configuration. So far so good but I'm stuck on the theme. When I setup the code using load-path it all ...
4
votes
3answers
1k views

Helm color theme gets mixed results

I am using the Tomorrow-Eighties color theme from the color-theme-sanityinc-tomorrow package. Unfortunately when using Helm, not all of the correct colors seem to be applied. I've had an interaction ...
4
votes
1answer
713 views

What's this line between the modeline and the echo area?

I'm using a dark theme, so it's a bit hard to see, but there is a black line between the modeline and the echo area in the shot above. You can also see it between the modeline and a hydra, and the ...
4
votes
1answer
4k views

Emacs Can't Find Theme File

(add-to-list 'custom-theme-load-path "~/.emacs.d") (load-theme 'sanityinc-solarized-dark-theme) I have these two lines in my .emacs file, and those theme files in the listed directory, yet emacs ...
4
votes
0answers
290 views

Change theme when OS dark mode changes?

VS Code recently added the ability to switch themes when macOS's dark mode changes. Presumably they use the Electron API, which internally uses the Objective-C API of subscribing to the ...
4
votes
0answers
375 views

Looking for a better way of tweaking rainbow delimiters

I'm a big fan of rainbow-delimiters. Even when I do not code in Lisp I can quickly and easily find matching bracket just looking at the code. My method works better on dark backgrounds, but can be ...
3
votes
2answers
1k views

Finding a specify Org-mode Color Theme

I've been searching for a while the following org-mode color theme on the net, which replace asterisk by circle, but I can't find it. Anyone happens to know the name of this theme? Thanks
3
votes
2answers
1k views

Emacs Terminal vs Emacs GUI: different look & feel for the same theme

Whenever I install a theme, I notice it odes not appear exactly the same way on Emacs Terminal and Emacs GUI. For example, I installed this theme recently, and it behaves as the previous ones I ...

1
2 3 4 5