Questions tagged [themes]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

Doom Emacs - `custom-theme-set-faces` not working for `org-level-n` faces

I am trying to modify a few faces for a specific doom-theme in Doom Emacs. I am only interested in an emacs-lisp solution, I do not want to customize via the dedicated Emacs interface. I got the basis ...
lyndhurst's user avatar
0 votes
1 answer
30 views

"unspecified-fg/bg" in "batch mode" when querying foreground/background colors

While writing tests for color-identifiers-mode I stumbled upon inability to make Emacs load background and foreground colors from a theme in "batch-mode". Example: emacs -batch --eval "(...
Hi-Angel's user avatar
  • 736
0 votes
0 answers
29 views

auto-dark-theme: error ("Could not determine a viable theme detection mechanism!")

After several months of painless use, Emacs suddenly complained when loading the init.el file (maybe following updates I could not figure out). It seems the error is returned by the auto-dark-theme ...
Christophe's user avatar
0 votes
0 answers
50 views

Wrong colors on Xfce-terminal

I use a colour scheme called solarized. Since I updated my Debian system a couple of weeks ago, colours are all wrong when I run emacs on Xfce-terminal Unsetting the COLORTERM environment variable ...
Ernest A's user avatar
  • 481
0 votes
0 answers
38 views

Get current theme's default cursor color after it's changed

How to get the current theme's default cursor color after it's modified by "set-cursor-color" of other functions that I defined? I thought I was able to get the default color value by ...
Akari's user avatar
  • 43
0 votes
1 answer
49 views

Remove gray horizontal line between titlebar with material theme on Mac OS X

I show in the image below a screenshot using Emacs 29.1 on Mac OS X with the material theme and the https://github.com/d12frosted/homebrew-emacs-plus port. You can see that there's a gray line drawn ...
cdd's user avatar
  • 217
0 votes
1 answer
250 views

How does emacs/eglot decide which syntax element to highlight and how could I change it?

For example, I'm writing a Lua file. I noticed that the table keys are not highlighted: I'd like to make the table keys in a different color than values, like what Emacs does for YAML: But I don't ...
Lai Yu-Hsuan's user avatar
0 votes
1 answer
52 views

frame hook load theme causes frame to crash after creation

I have attempted to change my emacs theme. I am using the emacs daemon and I have attempted to create a hook to change the theme on frame creation. However when this hook is active the frame crashes ...
Progamer's user avatar
0 votes
0 answers
25 views

Setting outline-%d foreground according to dark or light theme

I want to adapt this so that the colours used depend upon whether a dark theme (use pigment-darkbg) or light theme (use pigment-lightbg) is being used. What can I do ? Would the following be proper ? ...
Dilna's user avatar
  • 1
0 votes
0 answers
51 views

custom-theme-set-faces only works when there's typo

Emacs noob here. I'm trying to customize my org-levels like so: (let* ((variable-tuple (cond ((x-list-fonts "ETBembo") '(:font "ETBembo")) ((x-...
mlee's user avatar
  • 3
0 votes
2 answers
320 views

Emacs Modus themes

I would like to add a language in the org-src-block-faces list: (defun gb/org-src-block-faces () (add-to-list 'org-src-block-faces '("Php" modus-themes-nuanced-...
Gub's user avatar
  • 3
1 vote
0 answers
93 views

Is there a way to export a selected color scheme into css for org-mode?

I know that you can set the org-html-htmlize-output-type variable to 'css in order to make org-mode use a set of CSS classes for coloring output. However, all of the colors need to be defined by the ...
sajmon's user avatar
  • 56
0 votes
1 answer
34 views

Are Emacs themes just further initialization files, or are there any restrictions what can be coded in them?

In other words, are Emacs themes, like the .css files containing style declarations for html visualization are, restricted in what they can specify, or are they more like .js script files able to work ...
Claudio's user avatar
  • 450
0 votes
2 answers
90 views

Syntax highlighting colors change between emacs and emacs -nw

I am using Mac OS X Monterey. I have the following settings in .emacs (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") (load-theme 'liso t) but I noticed that these settings are ...
PaulTX's user avatar
  • 1
1 vote
1 answer
143 views

Toggle between two themes using one key binding

When I press the F9 key I want to call the ef-themes-select function and when I press F9 a second time to call the modus-themes-select function. I want to toggle between them each time I press the F9 ...
Zoli's user avatar
  • 421
-1 votes
1 answer
110 views

Changing emacs -Q from light to dark theme

I am running emacs -Q, giving me a light theme. Is it possible to change to a dark theme?
Dilna's user avatar
  • 1
0 votes
0 answers
34 views

Dark theme without customisations contradicts emacs -Q

I have the following in my init file. It is supposed not to customise anything. But it gives me a dark theme, whereas emacs -Q gives me a light theme. What is going on? This is all I have in my ....
Dilna's user avatar
  • 1
0 votes
1 answer
77 views

When desktop save mode set, emacs reverts to old custom themes

I was playing around a bit with custom themes. I found that using them would mess with my other settings and decided I wanted to revert to the standard emacs theme. I disabled the themes in question ...
tony's user avatar
  • 3
1 vote
1 answer
288 views

How to start scratch buffer with olivetti, org-mode and exotica theme altogether?

I want three things to happen when I start emacs: to have exotica theme mode enabled, along with having org-mode launch in scratch buffer from the beginning, and to have olivetti mode enabled too. I ...
user1146081's user avatar
1 vote
1 answer
157 views

"Package is Unavailable" Warning When Starting Spacemacs

I am getting the following warnings every time I start Spacemacs: Found 2 new package(s) to install... --> refreshing package archive: nongnu... [3/3] --> installing package: ef-spring-theme@...
Tom Purl's user avatar
  • 377
0 votes
0 answers
91 views

Access current theme face attributes in init.el

I have these lines in my init.el: (load-theme 'wombat) (deftheme wombat) ... (defvar my/default-cursor-color (face-attribute 'cursor :background t)) I want the variable my/default-cursor-color to be #...
Alex's user avatar
  • 155
0 votes
1 answer
143 views

How to change background color of a specific file?

Let's say I want my file notes.org to have a specific background color. How to do that? But I want other files to adhere to the standard theme color for background. So, I want yellow background for ...
fegax's user avatar
  • 45
0 votes
2 answers
136 views

How to export all face settings to a elisp file?

Some custom themes use code to generate the face definitions programmatically, which uses other variables like this. I'd like to export all plain face settings as if they are shown in the buffer ...
Saddle Point's user avatar
1 vote
0 answers
152 views

Does anybody know what Emacs theme this is?

What is the Emacs theme that is used in this screenshot? I stumbled upon it in the question Prevent org-mode code block background color from bleeding through when collapsed?.
waterbuck.01's user avatar
0 votes
1 answer
397 views

How to define consult faces generically for minibuffer highlighting that fits with your selected theme?

Background I'm experimenting with different themes to see which one I prefer. I'm giving a theme time to soak, so to speak, by using it for a few weeks. At the moment I'm trying the paganini theme. ...
ldeck's user avatar
  • 225
0 votes
0 answers
29 views

Changing background colour when using Emacs Help

Have got emacs running on a dark background. Would like to change the background to orange colour when I am using Emacs Help. Can this be done?
Dilna's user avatar
  • 1
1 vote
1 answer
521 views

How can I get the name of the loaded theme?

I'm trying to set different visual settings for different themes. In my .emacs.el file, I want to have conditional statements. For that, I need to programmatically get the name of the current loaded ...
Oguz Bilgic's user avatar
0 votes
0 answers
60 views

Specifying TODO formatting in a theme file

I have just created my first custom theme for Emacs using autothemer. In my theme file, I specify all the faces I'd like to use, including those used by org-mode. I notice now that my theming is split ...
Dan's user avatar
  • 191
2 votes
1 answer
136 views

By elisp how to change backgound color when specific theme is activated?

How do we set "white" background when only "adwaita" theme is activated. The following does not work. (when (equal 'custom-enabled-themes "adwaita") (set-background-...
Nadira's user avatar
  • 21
1 vote
1 answer
356 views

Cannot enable FACE attributes with (custom-theme-set-faces!)

config.el (custom-theme-set-faces! 'doom-ir-black '(mode-line :foreground "blue") ;;'(mode-line :foreground t) ;; also doesn't work ;;'(mode-line :foreground "#000000&...
qKweint's user avatar
  • 90
0 votes
1 answer
140 views

How to apply a different theme for files in a specific directory

How can I use a different theme (or color scheme) for files in a specific directory? Currently in my system, a single theme is applied to all buffers. The theme is chosen in ~/.emacs as (load-theme '...
norio's user avatar
  • 203
0 votes
1 answer
103 views

Customize face can use some theme faces, but not all

This is my theme config. I am trying to modify the face list-matching-lines-buffer-name-face, which is part of the result window of occur (see replace.el.gz). Using customize-option on list-matching-...
Gauthier's user avatar
  • 509
1 vote
1 answer
958 views

Why does Doom Emacs have different background colors for different windows?

I've noticed that for some themes, different windows have different background colors. I suspect this has to do with the major mode of the window, but I'm not sure. Here's an example of what I'm ...
Dargscisyhp's user avatar
1 vote
2 answers
265 views

Can the menubar and scrollbar be customized?

In GTK versions of Emacs (or more generally any GUI version of Emacs), can the scrollbar and menubar colors be customized? I can probably change the look of ALL my GTK applications, but when running ...
Arne's user avatar
  • 409
1 vote
0 answers
152 views

Themes and other options not loading from MELPA

While following a tutorial on editing python using Emacs (https://realpython.com/emacs-the-best-python-editor/) I've been unable to install better-defaults, line numbers and any themes or return to ...
Andrew's user avatar
  • 11
1 vote
1 answer
1k views

Auto-detect system dark mode or light mode and select themes based on that

Is there a way on linux (Ubuntu 20, Gnome) to detect changes in system's dark mode vs light mode and change emacs themes to a dark theme or light theme that I specify? I see this question Change theme ...
Peeyush Kushwaha's user avatar
3 votes
1 answer
465 views

Porting a VSCode theme to Emacs?

Does anyone know of an easy way to port a VSCode theme to emacs? I found a Python program that converts a json file created from terminal.sexy into a doom-theme, but have not been able to find an easy ...
Dargscisyhp's user avatar
0 votes
0 answers
32 views

How to set Variables in config.el [duplicate]

I would like to use a color-palette in my theme-file... there it is: (deftheme TEST) (let ((col1 "red" ) (col2 "blue" )) (custom-theme-set-faces 'TEST '(cursor ((t (:...
OsunSeyi's user avatar
1 vote
1 answer
142 views

Building custom theme based on another

Since the first time I set a custom theme in Emacs and then later attempted to modify some faces, I learned how to do it dynamically with the currently loaded and enabled theme. Now, I am finally ...
iLemming's user avatar
  • 1,263
2 votes
1 answer
202 views

company-mode popups and magit current region are dark while current theme is light

I've been successfully using lsp-mode and magit for a while with a light theme (leuven). Today I was messing with something seemingly unrelated (company-mode and auto-complete settings in my ~/.emacs ...
Ricky Robinson's user avatar
0 votes
1 answer
87 views

Effect of doom themes in tabulated list header line is visually confusing

I am on the process of moving from prelude [1] to a stand-alone config I have created from scratch [2], though by largely copying other people's .emacs. It seems I have inadvertently changed the ...
Marco Craveiro's user avatar
1 vote
1 answer
1k views

Changing Terminal Emacs Theme

I have to run some C and Fortran programs over SSH, and need to edit the source files on the shell. I think Emacs is the right tool for such a task, and it was preinstalled on the server. Though when ...
duality's user avatar
  • 11
0 votes
1 answer
796 views

Set the default background color in spacemacs

I'm trying to set the default background color to black in spacemacs. I'm setting the following theme in my init.el file: dotspacemacs-themes '(afternoon molokai) In my user-config.el file I've ...
oneself's user avatar
  • 341
2 votes
1 answer
471 views

How this guy do glow(neon) text

I think everything is clear from this video. https://vimeo.com/22798433 I am interested in how to make the text exactly like that. Here's another example but this is vs code https://youtu.be/...
user avatar
0 votes
1 answer
223 views

changing default emacs theme to downloaded theme

I have just downloaded a matrix theme name matrix-theme-source-code.el and I want to install it on my emacs, I have read that I should do the following thing in my .emacs :- (add-to-list 'custom-theme-...
Shubharthak's user avatar
0 votes
1 answer
1k views

How can I install and enable this theme?

I have been using this solarized theme for many years now: https://github.com/sellout/emacs-color-theme-solarized. This theme used to be available in the MELPA repos, but it is no longer available ...
Brian Fitzpatrick's user avatar
0 votes
0 answers
153 views

Unreadable screen- even when using Doom-one theme

I am new to Doom Emacs, I am using default theme Doom-one which for the most part is fine. The problem I have is when I open any screen after just opening Emacs such as the config files I get this ...
Luck128's user avatar
3 votes
0 answers
128 views

Looking for a theme that takes medical considerations into account

As the title suggests, I am interested in an emacs theme that has been specifically designed for the good of the 24/7 hard-working programmer's eyes. Notice that this question is not opinion-based; I ...
qarabala's user avatar
  • 131
0 votes
1 answer
262 views

Can't disable font-lock-mode

If I have font-lock on and I do M-x find-library RET simple RET, I have colours: If I then M-x font-lock-mode to disable the mode, the colours disappear in the currently-visible portion of the buffer:...
HappyFace's user avatar
  • 830
0 votes
1 answer
358 views

Newbie unable to change color scheme

I'm a new Emacs user and am unable to successfully change the color scheme. I have followed numerous guides, YouTube videos but have not been able to load any color scheme, some error always pops up. ...
balanga's user avatar
  • 135

1
2 3 4 5 6