Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scheme in Emacs blows off color scheme

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?

like image 277
melwasul Avatar asked May 12 '12 15:05

melwasul


People also ask

How do I change the color scheme in Emacs?

Alt + x load-theme , then press Tab to show a list of available themes. Alternatively, Alt + x customize-themes to set a color theme. M-x customize-themes. Click to see the change immediately.

How to change theme on Emacs?

You can enable a specific Custom theme in the current Emacs session by typing M-x load-theme . This prompts for a theme name, loads the theme from the theme file, and enables it. If a theme file has been loaded before, you can enable the theme without loading its file by typing M-x enable-theme .

How do I make an Emacs theme?

You can define a Custom theme using an interface similar to the customization buffer, by typing M-x customize-create-theme . This switches to a buffer named *Custom Theme* . It also offers to insert some common Emacs faces into the theme (a convenience, since Custom themes are often used to customize faces).


1 Answers

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.

like image 64
Patrick Brinich-Langlois Avatar answered Nov 15 '22 10:11

Patrick Brinich-Langlois