Questions tagged [themes]
Questions about using, creating, and modifying color themes and custom themes.
252
questions
0
votes
1
answer
44
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 ...
0
votes
1
answer
25
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 ...
0
votes
0
answers
20
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 ?
...
0
votes
0
answers
31
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-...
0
votes
2
answers
178
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-...
1
vote
0
answers
56
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 ...
0
votes
0
answers
23
views
Wrong number of arguments: ((t) nil "Remove fringes in treemacs window."
I'm using treemacs as the file browser for my emacs. I've enabled kaolin-treemacs-theme for treemacs.
(use-package kaolin-themes
:config
(load-theme 'kaolin-dark t)
(kaolin-treemacs-theme))
My ...
0
votes
1
answer
31
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 ...
0
votes
1
answer
40
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 ...
1
vote
1
answer
95
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 ...
0
votes
0
answers
17
views
anti-zenburn-theme.el not working correctly emacs version 27.1 (under debian) anti-zenburn-theme.el
My Problem:
I use anti-zenburn-theme.el within the emacs.
The background colour (light grey) is okay within emacs 24.4.1.
Now I have a new compile machine, there emacs 27.1 is installed.
The ...
0
votes
0
answers
18
views
Powerline and exotica-theme don't work together
I shrunk my .emacs.d file to the lines below in 3 scenarios. (all packages installed)
The code below works as expected.
(use-package exotica-theme
:ensure t)
(load-theme 'exotica t)
The code ...
-1
votes
1
answer
76
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?
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 ....
0
votes
1
answer
44
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 ...
1
vote
1
answer
196
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 ...
1
vote
1
answer
105
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@...
0
votes
0
answers
57
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 #...
0
votes
1
answer
106
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 ...
0
votes
2
answers
95
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 ...
1
vote
0
answers
139
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?.
0
votes
1
answer
265
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.
...
0
votes
0
answers
27
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?
1
vote
1
answer
278
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 ...
0
votes
0
answers
41
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 ...
2
votes
1
answer
102
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-...
1
vote
1
answer
311
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&...
0
votes
1
answer
94
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 '...
0
votes
1
answer
81
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-...
1
vote
1
answer
737
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 ...
1
vote
2
answers
193
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 ...
1
vote
0
answers
135
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 ...
1
vote
1
answer
825
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 ...
3
votes
1
answer
335
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 ...
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 (:...
1
vote
1
answer
119
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 ...
2
votes
1
answer
176
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 ...
0
votes
1
answer
80
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 ...
1
vote
1
answer
787
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 ...
0
votes
1
answer
653
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 ...
2
votes
1
answer
380
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/...
0
votes
1
answer
175
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-...
0
votes
1
answer
710
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 ...
0
votes
0
answers
121
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 ...
3
votes
0
answers
109
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 ...
0
votes
1
answer
223
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:...
0
votes
1
answer
269
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. ...
0
votes
0
answers
37
views
How to discard line-number highlight during i-search?
During the i-search if I use dracula theme it highlights the line-number if the searched word is the first in the line.
Example view:
If I uncomment (load-theme 'dracula t) the example view would be ...
2
votes
1
answer
113
views
How can I make a theme use particular face attributes for a given face in a single buffer?
I'm loading a deftheme theme using (load-theme). I'm very happy with it most cases, but in yaml-mode I'd like to change attributes for font-lock-variable-name-face.
How can I make the theme use ...
0
votes
1
answer
115
views
How can I set and retain font size of the solarized-theme?
I like the solarized (light) theme in emacs but i have a 27" mac so the font is too small.
I know I can enlarge with C-x C-+ but I do not know how to set the font size and retain that setting so ...