Hot answers tagged

31 votes
Accepted

Different theme for -nw (terminal)

Use display-graphic-p to determine if Emacs is in a GUI or not. Assuming solarized is installed and loaded: (if (display-graphic-p) (enable-theme 'solarized) (enable-theme 'wheatgrass)) See ...
user avatar
29 votes

Emacs won't load theme on startup

add to your init.el (load-theme 'solarized-dark t) you can ignore stuff emacs added there, just delete it.
user avatar
26 votes

Emacs won't load theme on startup

By default, Emacs only autoload the packages after processing the init file. So when it was trying to set theme, the theme package wasn't loaded. Rather than making all packages load in your init ...
user avatar
  • 361
24 votes
Accepted

How to reset color theme?

Are you sure that you are using color themes and not Emacs custom themes? Color themes are defined by library color-theme.el. Custom themes are available starting with Emacs 24 - and they are not the ...
user avatar
  • 70.1k
23 votes
Accepted

Stop emacs asking if a theme is safe

Set the second argument of the load-theme function. From its docstring: If the theme is not considered safe by ‘custom-safe-themes’, prompt the user for confirmation before loading it. But if ...
user avatar
  • 1,723
22 votes
Accepted

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

I'm not sure why the background color is there either, but it seems to be controlled by the function shr-color-check, which is supposed to check that the contrast between the fg and bg is sufficient ...
user avatar
  • 2,745
21 votes

Emacs won't load theme on startup

I've added the following to my init.el file (I don't have a .emacsfile in ~). (setq package-enable-at-startup nil) (package-initialize) and then at the end (custom-set-variables ;; custom-set-...
user avatar
17 votes
Accepted

Is there a transparent theme?

I found a solution, and no longer I need transparent theme. The solution is : ;; set transparency (set-frame-parameter (selected-frame) 'alpha '(85 85)) (add-to-list 'default-frame-alist '(alpha 85 ...
user avatar
16 votes
Accepted

How do I change portions of a custom theme?

I favor using custom-theme-set-faces to redefine how the theme displays a particular face, e.g., (custom-theme-set-faces 'zenburn '(font-lock-comment-face ((t (:foreground "#DFAF8F")))) '(font-...
user avatar
  • 2,604
13 votes
Accepted

How to change the mouse pointer colour?

Just found this, did not tried it: (set-mouse-color "red")
user avatar
  • 6,071
13 votes
Accepted

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

Put this line in your init. Theme changes will take effect immediately in Emacs 27. (setq custom--inhibit-theme-enable nil) Presumably the automatic theme changing was disabled for a good reason. ...
user avatar
11 votes
Accepted

describe-face character not under / unreachable by the cursor

I do not know about using the mouse, but I've often found it's easiest for me to run list-faces-display and then just i-search for what the face is likely called or visually scan for text that looks ...
user avatar
11 votes
Accepted

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

I'm guessing that you are not really looking for a way to "execute the hook only once". I'm guessing that you are looking for a way to execute that particular function only once, whenever the hook is ...
user avatar
  • 70.1k
10 votes
Accepted

Use a different color theme for eww buffers

Update: load-theme-buffer-local.el (GitHub repository) is supposed to do what I tried to do, but do it the right way. To use it with eww, install it and add (add-hook 'eww-mode-hook (...
user avatar
  • 8,992
10 votes

describe-face character not under / unreachable by the cursor

There are 4 regions where text may be displayed in Emacs, here is what you can do to inspect each of them. The mode-line: See the value of mode-line-format. The header-line: See the value of header-...
user avatar
  • 22.4k
10 votes
Accepted

Emacs always ask to trust colour theme at startup

Your init.el file probably contains a snippet like this: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your ...
user avatar
  • 22.4k
10 votes

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

I believe it is standard practice for themes installed as packages to add their own paths to custom-theme-load-path as an autoload. A call to package-initialize will execute all of your package ...
user avatar
  • 2,604
10 votes
Accepted

How to change face in particular theme locally?

Use custom-theme-set-faces in a with-eval-after-load to easily customize a theme. For example, this modifies ample-theme to have a lighter background and green keywords instead of the defaults. (...
user avatar
9 votes

Different themes for terminal and graphical frames when using Emacs daemon

You cannot do this using different themes. The solution is to create a theme that has different face definitions depending on the terminal. If you look at an example like font-lock-comment-face, you'...
user avatar
9 votes

Finding a specify Org-mode Color Theme

Not sure of the specific colors, but to replace the asterisks with custom unicode chars, you might use https://github.com/sabof/org-bullets
user avatar
9 votes

how do i install "solarized-theme"?

github.com/altercation/solarized.git is the repository for the Solarized theme for vim. For emacs, the repo is https://github.com/bbatsov/solarized-emacs. The recommended approach to install the ...
user avatar
  • 24.3k
9 votes

How do I change portions of a custom theme?

In spacemacs, install the layer theming, see https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Bthemes/theming For example, I have the following snipped in the dotspacemacs/user-init of my ....
user avatar
  • 191
9 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 ...
user avatar
  • 70.1k
9 votes

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

Another solution would be to add enable-theme to the custom theme settings, such as: (when (< emacs-major-version 27) (package-initialize)) (load-theme 'leuven t) (custom-theme-set-faces '...
user avatar
  • 91
8 votes

Is there a transparent theme?

You can set transparency within Emacs by setting 'alpha frame parameter, This parameter specifies the opacity of the frame, on graphical displays that support variable opacity. It should be an ...
user avatar
  • 2,325
8 votes

Emacs won't load theme on startup

I think the important part is (package-initialize). I'm not so sure you need the package-enable-at-startup bit. So: (package-initialize) (load-theme 'ample t) You can also tell emacs to trust all ...
user avatar
  • 191
8 votes
Accepted

Orgmode: Extra vertical space between level 1 and previous line

There may be a better way, but the following can help. From org documentation, if you insert more than one blank line before the heading, one blank line will be displayed: An empty line after the ...
user avatar
  • 6,993
7 votes

Different themes for terminal and graphical frames when using Emacs daemon

color-theme-buffer-local provides buffer-local theme support for both color-theme and the Emacs 24 theme systems. My version of the solarized theme also supports both systems, if you decide to go this ...
user avatar
  • 2,781
7 votes
Accepted

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

The Short Answer You should not customize the custom-theme-load-path variable in the Customize interface. So call M-x customize-variable RET custom-theme-load-path and ask to erase customizations (...
user avatar
  • 22.4k
7 votes

Finding a specify Org-mode Color Theme

Doesn't sound like a theme to be honest. Try org-bullet.
user avatar
  • 21.1k

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