Scheme in Emacs blows off color scheme - emacs

When I edit scheme (.scm) files in Emacs, I seem to lose my chosen color theme. I'm on Ubuntu 11.10; Emacs 23.3.2 GTK+ and here's my relevant .emacs for color theming:
(require 'color-theme)
(eval-after-load "color-theme"
'(progn
(color-theme-initialize)
(setq color-theme-is-global t)
(color-theme-tm)))
The tm theme looks good and is easy on the eyes (warm pastels). But when I load a .scm file, the scheme mode seems to have its own ideas about colors and gives me horrible intense glaring blues and, much worse, glowing red for parens. I can open a .lisp file and it conforms to the tm theme nicely -- as do all other file formats. I've switched over to emacs -nw console with term256 set up ... and that seems to calm down the glow a bit, but in GUI Emacs, it's as if only scheme files throw out the tm theme, throw out even 256 colors to glower viciously at me. Even choosing from GUI Emacs menu choice "Tools/Color Themes" doesn't alter the bad scheme-mode color theme. I also use quack.el, but commented out doesn't seem to influence bad colors. Is this an omen to switch to Haskell?

This problem was caused by the Quack plugin. To fix it, click on the Quack menu and go to Options->Customize. Scroll down to Quack Fontify Style, click on Value Menu, and choose either Extended GNU Emacs Style or Emacs Default. Scroll back up, click "Save for future sessions," and Exit.

Related

How do I use Font Awesome 5 with emacs after changing the default font of emacs?

Whenever I open a file which contains font awesome 5 icons in it, or I paste a icon into emacs buffer, emacs will freeze forever.
After researching for an afternoon, I found that as long as I don't customize emacs default font (by putting (add-to-list 'default-frame-alist '(font . "NovaMono-12")) in my emacs config file), it will work fine.
Alse, using emacs with -nw flag can display the icons normally too.

Changing emacs terminal color theme

This might be dumb question but I'm a newbie and having a lot of trouble changing my emacs color scheme. I think i already changed colors for my desktop version of emacs, but whenever i open .c files from terminal, they turn up just plain black and white?
Anyways,
I really want to download the monokai color scheme but I'm really confused on the directions for installation. Would someone mind helping me through with it?
https://github.com/oneKelvinSmith/monokai-emacs
it says to
"Download monokai-theme.el to the directory ~/.emacs.d/themes/. Add this to your .emacs:"
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
How do i download something through emacs? I know it has something to do with adding stuff to the .emacs file...but do i just put it anywhere in there? I know theres already lines in there and I don't want to mess any of that up.
Thanks!
1)Open github.com/oneKelvinSmith/monokai-emacs
2)You have a green button (up right) "clone or download " to download monokai-theme.
3)After downloading, unzip monokai-emacs-master.zip
4)If necessary do : mkdir ~/.emacs.d/themes
5)cd monokai-emacs-master;cp monokai-theme.el ~/.emacs.d/themes/
6)add to your ~/.emacs : (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
7)Inside emacs :M-x load-theme RET monokai (of course RET is return)

Emacs 24 client not loading color theme properly

I want to use the color theme solarized-light. It works just fine if I do (load-theme 'solarized-light t), however I am having issues with having it load automatically.
If I simply add (load-theme 'solarized-light t) to my .emacs, the color theme won't load properly. Some of the colors are applied but others aren't, I assume this is because it's not running in a GUI so it assumes the terminal can't support the colors or something.
Logically, I tried putting the call to load the theme in the after-make-frame-functions variable. I thought that if it only tries to load the theme after I'm already in a GUI, then it should work right?
It doesn't. When I create the first frame the same thing happens with the terminal and the colors aren't loaded properly. However, if I make another frame while I already have one open then it works properly.
Is there any way to apply the theme properly when I make the first frame, or even before that if possible?
I'm on Arch Linux running Emacs 24.3.1 as a daemon. In case this behavior is tied to the window manager, I've tried it in both StumpWM and Openbox and it doesn't work in either.
Edit:
As a temporary workaround I have made a command in my .stumpwmrc that runs the shell command emacsclient --eval "(load-theme 'solarized-light t)" after making the frame. This works but it doesn't answer my original question (nor is it likely to help people with other window managers).
add
(package-initialize)
(setq package-enable-at-startup nil)
to the top of your .emacs file. then set the them from M-x customize-groups: themes, select theme in the menu and save to your .emacs file, also disable foreground and background from default faces group. restart emacs or M-x eval-buffers to check.

Emacs Prelude: Background Color

I installed the Emacs Prelude as suggested in https://github.com/bbatsov/prelude . I find the background-color grey of the Zenburn theme to be disturbing. I wish to change the background-color to black. I tried (set-background-color "black") ,but it is not working. The background-color still remains grey. Can someone help on how to fix this ?
I'm assuming you didn't eval (set-background-color "black") (or didn't restart Emacs), since it worked just fine when I tested it with Prelude.
Placing the code in personal.el (as mentioned in the README) will work as well.
Btw, if you don't like Zenburn you might try a different theme, rather than playing its colours. You can see a list of available themes with M-x load-theme. There are details about this in the README as well.
The cleanest way to do this is to edit .emacs.d/init.el and add the following:
(disable-theme 'zenburn)
This will give you a "fresh start" with default color settings. You are then free to change the colors as you wish.
If you like a black background, you might want to install the popular Cyberpunk theme.
M-x package-install RET
cyberpunk themeRET

emacs and emacsclient colors

When I started to use emacs as daemon and emacsclient with new frame as interface, all was just fine. But then I wanted to adopt emacsclient for running in urxvt terminal. I’ve installed color-scheme package from my distro’s package manager and added initializing code to my ~/.emacs.d/init.el I switched between various color themes, but then realized that colors are actually depend of color palette of the terminal emacsclient is running in. So I deleted the color-theme package and removed lines related to it from my init.el. But something went wrong and I was left with default black foreground color, totally black cursor (I use only default X cursor which is black arrow outlined white, but what I got was looking almost like this, but totally black) and decreased font-size.
I was digging to fix all that as fast as possible, and started to use
'(default-frame-alist (quote ((menu-bar-lines . 0) (left-fringe . 0) (right-fringe) (tool-bar-lines . 0) (background-color . "#2e3436") (foreground-color . "#d3d7cf") (cursor-color . "#ffffff"))))
This is what appeared in my custom-set-variables of my init.el after I finally hit on an appropriate item crawling the customize menu. However, now I need to specify more and more of things to make them look as in usual emacs (not as deamon, there colors and font are still fine). Then a question appeared: ‘Why before installation of color-theme frames of emacsclient were always inherit the default look of emacs I described through customize menu and saved to init.el?’
Deleted all frame-related stuff from init.el and it works like before now.