Giter Site home page Giter Site logo

zenburn-emacs's Introduction

zenburn-theme for Emacs

License GPL 3 MELPA MELPA Stable

About

Zenburn for Emacs is a direct port of the popular Zenburn theme for vim, developed by Jani Nurminen. It's my personal belief (and that of its many users I presume) that it's one of the best low contrast color themes out there and that it is exceptionally easy on the eyes.

This theme uses the "new" (it used to be new several years ago when I created this package) built-in theming support available starting with Emacs 24.1.

Overview screenshot


ko-fi Patreon

You can support the development of Zenburn for Emacs via GitHub Sponsors, ko-fi, PayPal and Patreon.

Installation

Manual

Download zenburn-theme.el to the directory ~/.emacs.d/themes/. Add this to your .emacs (or init.el):

(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")

Now you can load the theme with the interactive function load-theme like this:

M-x load-theme RET zenburn

Package.el

Zenburn is available in NonGNU ELPA, MELPA Stable and MELPA.

You can install zenburn with the following command:

M-x package-install zenburn-theme

To load it automatically on Emacs startup add this to your init file:

(load-theme 'zenburn t)

Emacs Prelude

Zenburn for Emacs is already bundled into Emacs Prelude. If you're a Prelude user - you're probably already using Zenburn, since it's Prelude's default color theme. You can load Zenburn at any time by M-x load-theme zenburn.

Debian and Ubuntu

Users of Debian 9 or later or Ubuntu 16.10 or later may simply apt-get install elpa-zenburn-theme.

Customization

Custom colors

If you'd like to tweak the theme by changing just a few colors, you can do so by defining new values in the zenburn-override-colors-alist variable before loading the theme.

For example, to customize just the lighter background colors, you could add to your init file:

(setq zenburn-override-colors-alist
      '(("zenburn-bg+05" . "#282828")
        ("zenburn-bg+1"  . "#2F2F2F")
        ("zenburn-bg+2"  . "#3F3F3F")
        ("zenburn-bg+3"  . "#4F4F4F")))
(load-theme 'zenburn t)

To see the full list of color names you can override, consult the zenburn-theme.el source file.

Scaled headings

The theme supports scaling the font size for some headings and titles as well as using a variable-pitch font for those. To enable this, use the following settings before loading zenburn-theme:

;; use variable-pitch fonts for some headings and titles
(setq zenburn-use-variable-pitch t)

;; scale headings in org-mode
(setq zenburn-scale-org-headlines t)

;; scale headings in outline-mode
(setq zenburn-scale-outline-headlines t)

The screenshot above shows the default setting with no scaled or variable-pitch fonts. With scaled headings and variable-pitch fonts it looks like this:

Scaled screenshot

FAQ

Wrong colors in the terminal Emacs version

If your Emacs looks considerably uglier in a terminal (compared to the GUI version) try adding this to your .bashrc or .zshrc:

export TERM=xterm-256color

Source the .bashrc (or .zshrc) file and start Emacs again.

Bugs & Improvements

Please, report any problems that you find on the project's integrated issue tracker. If you've added some improvements and you want them included upstream don't hesitate to send me a patch or even better - a GitHub pull request. These contributors have done so.

Donate

You can support my work on Zenburn and all my other OSS projects via the following platforms:

Contributors

Here's a list of all the people who have contributed to the development of Zenburn for Emacs.

Changelog

A fairly extensive changelog is available here.

License

Copyright © 2010-2022 Bozhidar Batsov and contributors.

Distributed under the GNU General Public License, version 3

zenburn-emacs's People

Contributors

adamrt avatar aethanyc avatar arichiardi avatar aroig avatar atheriel avatar basil-conto avatar bbatsov avatar drot avatar dudebout avatar ericdanan avatar felixc avatar georgek avatar ianyepan avatar impaktor avatar jleechpe avatar josherrickson avatar lesharris avatar m00natic avatar manuel-uberti avatar montag451 avatar mpmiszczyk avatar odi avatar posiczko avatar ptrv avatar rocky avatar skangas avatar swsnr avatar tarsius avatar yuezhu avatar zane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zenburn-emacs's Issues

can't autoload zenburn on emacs 24

Hi there.
I can't autoload zenburn-theme in emacs (24.1.1) on Fedora 17
I installed the file by using (I got marmalade repo installed):
M-x package-install RET zenburn-theme RET

The package got download at ~/.emacs.d/elpa/ (a file called "zenburn-theme-1.5" whose content is: zenburn-theme.el, zenburn-theme-autoloads.el, zenburn-theme-pkg.el, zenburn-theme-pkg.elc)

I can actually load it at sessions by:
M-x load-theme RET zenburn RET

The issue is to load it automatically. To have that I wrote in my .emacs file:
(add-to-list 'load-path "~/.emacs.d/elpa/zenburn-theme-1.5/")
(load-theme 'zenburn-theme t) (I also tried (load-theme 'zenburn t) but unsuccessful)

I already tried adding just: "(load-theme 'zenburn t)" as instructed at https://github.com/bbatsov/zenburn-emacs
But whenever I do so emacs says it can't find theme, when starting).

Could you pls post your package-load-path and the coding you include on your .emacs, pls??
I would appreciate it.

PS. I also made it manually. Dropping the package at /.emacs.d/theme and adding to my .emacs file:
(add-to-list 'custom-theme-load-path "
/.emacs.d/themes/")
(load-theme 'zenburn t)

but unsuccessful.
Once again I'd appreciate your help on this issue.
Txe

Renaming all the gnus and message fonts

All the gnus and message fonts have a suffix -face that should be removed.

Here is an explanation for one font in gnus that can be generalized to all the fonts mentionned.
gnus-group-mail-1-face is an alias for gnus-group-mail-1.
So if you load the theme after gnus the theme applies.
If you load the theme before gnus, gnus redefines the face, and the theme is not applied properly.

Help view background

I am using Aquamacs 2.4 (Emacs 23.3) with zenburn. In "Help view" windows, e.g. by C-h m, the background color is white, which makes reading text very difficult because text color is similar.

why do outline-N inherit from default?

What's the motivation for this?:

   ;; outline
   `(outline-8 ((t (:inherit default))))
   `(outline-7 ((t (:inherit outline-8 :height 1.0))))
   `(outline-6 ((t (:inherit outline-7 :height 1.0))))
   `(outline-5 ((t (:inherit outline-6 :height 1.0))))
   `(outline-4 ((t (:inherit outline-5 :height 1.0))))
   `(outline-3 ((t (:inherit outline-4 :height 1.0))))
   `(outline-2 ((t (:inherit outline-3 :height 1.0))))
   `(outline-1 ((t (:inherit outline-2 :height 1.0))))

Wouldn't it make much more sense to use the same definitions as for org-level-N instead? We might want to avoid anything green though as that looks like comments. And then for consistency org-level-N also shouldn't be green.

Which file for 24?

color-theme-zenburn.el is the preferred name for emacs24 theme loading -- so that it gets loaded automatically.

however, it seem like zenburn.el is the one getting updated more frequently?

Also, why include color-theme.el in this repo?

How to further customize?

This may really be an Emacs theming question, but I haven't got much useful help from the emacs lists.

I'm using the zenburn customization theme (as opposed to color-theme.el), but I want all my mail citation faces to inherit from this:

;; I like citations in email to be set off from the rest of the text
;; by a slightly different background color.  This helps immeasurably
;; when people forget to leave a blank line after citations.  see
;; gnus-settings.el and wl-settings.el, where I inherit this face.
(defface dwa/mail-citation '((((class color)
             (background dark))
            (:background "#383838"))
               (((class color)
             (background light))
            (:background "#efefef")))
  "Mail citation base face.")

I was doing something like this in my .emacs:

(loop for x in gnus-cite-face-list do
      (set-face-attribute x nil ':inherit 'dwa/mail-citation))

but that seems to prevent zenburn customizations from "showing through." I could make my own theme that includes these changes and all of zenburn's customizations to these faces, but that seems clumsy at best.

I need to switch back and forth between zenburn and a lighter theme on a fairly regular basis. What is the elegant way to handle situations like this one?

Problems with Zenburn and Emacs trunk

I've been having some trouble with zenburn and emacs built from trunk today (24/06).
This is the backtrace I get:

Debugger entered--Lisp error: (error "Not a face: yascroll:thumb-fringe")
  signal(error ("Not a face: yascroll:thumb-fringe"))
  error("Not a face: %s" yascroll:thumb-fringe)
  check-face(yascroll:thumb-fringe)
  face-spec-recalc(yascroll:thumb-fringe #<frame emacs@[HOST] 0x1123330>)
  custom-theme-recalc-face(yascroll:thumb-fringe)
  enable-theme(zenburn)
  load-theme(zenburn t)
[...]

Commenting out the offending line in zenburn-theme.el simply shifts the error one line up (yascroll:thumb-text-area, which-func, ...).

Symbol's function definition is void: rainbow-mode

Unable to install zenburn-theme from melpa:

Contacting host: melpa.milkbox.net:80
Wrote /job/HOME/ccollier/.emacs.d/elpa/zenburn-theme-20120708/zenburn-theme.el
Wrote /job/HOME/ccollier/.emacs.d/elpa/zenburn-theme-20120708/zenburn-theme-pkg.el
Wrote /job/HOME/ccollier/.emacs.d/elpa/zenburn-theme-20120708/zenburn-theme-autoloads.el
Generating autoloads for zenburn-theme-pkg.el...done
eval: Symbol's function definition is void: rainbow-mode

diff refined hunks are too low-contrast

When viewing a diff, you can navigate over hunks with M-n and M-p. This causes diff-mode to automatically refine the hunk being visited, which highlights the changes made within each line, but does so with the foreground color by default.

Because removed lines are displayed in a very light red, this makes removed words in these highlighted sections unreadable. Here's a simple change to make these more readable by using a slightly off background color instead:

diff --git a/zenburn-theme.el b/zenburn-theme.el
index 143046f..e403b7c 100644
--- a/zenburn-theme.el
+++ b/zenburn-theme.el
@@ -209,6 +209,7 @@
                    (t (:foreground ,zenburn-red-3))))
    `(diff-header ((,class (:background ,zenburn-bg+2))
                   (t (:background ,zenburn-fg :foreground ,zenburn-bg))))
+   `(diff-refine-change ((,class (:background ,zenburn-bg+1))))
    `(diff-file-header
      ((,class (:background ,zenburn-bg+2 :foreground ,zenburn-fg :bold t))
       (t (:background ,zenburn-fg :foreground ,zenburn-bg :bold t))))

Left-margin background and linum mode

In Zenburn theme;
When linum-mode (more info) is activated, the background color of the active buffer is the same as in the left margin(where the line numbers are displayed),
It is possible to introduce a custom background in the left-margin like this Sample?
I was following this thread on stackoverflow, but it don't seems to works on emacs 24. Any ideas?

void variable zenburn-orange+1?

For some reason I am getting an error about zenburn-orange+1.

Here is the lisp debugging output:

(void-variable zenburn-orange+1)
(list (quote :foreground) zenburn-orange+1)
(list t (list (quote :foreground) zenburn-orange+1))
(list (list t (list (quote :foreground) zenburn-orange+1)))
(list (quote org-time-grid) (list (list t (list (quote :foreground) zenburn-orange+1))))
( (org-time-grid ((t (:foreground (\, zenburn-orange+1)))))) (list (quote color-theme-zenburn) ( ((background-color , zenburn-bg) (background-mode . dark) (border-color , zenburn-bg) (foreground-color , zenburn-fg) (mouse-color , zenburn-fg))) ( ((emms-mode-line-icon-color \, zenburn-fg) (goto-address-mail-face . italic) (goto-address-mail-mouse-face . secondary-selection) (goto-address-url-face . bold) (goto-address-url-mouse-face . hover-highlight) (help-highlight-face . hover-highlight) (imaxima-label-color \, zenburn-yellow) (imaxima-equation-color \, zenburn-fg) (list-matching-lines-face . bold) (view-highlight-face . hover-highlight) (widget-mouse-face . hover-highlight))) (quote (bold ((t (:weight bold))))) (quote (bold-italic ((t (:italic t :weight bold))))) ( (default ((t (:background (, zenburn-bg) :foreground (, zenburn-fg)))))) (quote (fixed-pitch ((t (:weight bold))))) (quote (italic ((t (:slant italic))))) (quote (underline ((t (:underline t))))) ( (zenburn-background-1 ((t (:background (\, zenburn-bg+1)))))) ( (zenburn-background-2 ((t (:background (, zenburn-bg+2)))))) ( (zenburn-primary-1 ((t (:foreground (\, zenburn-yellow) :weight bold))))) ( (zenburn-primary-2 ((t (:foreground (, zenburn-orange) :weight bold))))) (quote (zenburn-primary-3 ((t (:foreground "#dfdfbf" :weight bold))))) (quote (zenburn-primary-4 ((t (:foreground "#dca3a3" :weight bold))))) (quote (zenburn-primary-5 ((t (:foreground "#94bff3" :weight bold))))) (quote (zenburn-highlight-damp ((t (:foreground "#88b090" :background "#2e3330"))))) (quote (zenburn-highlight-alerting ((t (:foreground "#e37170" :background "#332323"))))) (quote (zenburn-highlight-subtle ((t (:background "#464646"))))) (quote (zenburn-lowlight-1 ((t (:foreground "#606060"))))) (quote (zenburn-lowlight-2 ((t (:foreground "#708070"))))) ( (zenburn-yellow ((t (:foreground (\, zenburn-yellow)))))) ( (zenburn-orange ((t (:foreground (, zenburn-orange)))))) ( (zenburn-red ((t (:foreground (\, zenburn-red)))))) ( (zenburn-green-1 ((t (:foreground (, zenburn-green-1)))))) ( (zenburn-green ((t (:foreground (\, zenburn-green)))))) ( (zenburn-green+1 ((t (:foreground (, zenburn-green+1)))))) ( (zenburn-green+2 ((t (:foreground (\, zenburn-green+2)))))) ( (zenburn-green+3 ((t (:foreground (, zenburn-green+3)))))) ( (zenburn-green+4 ((t (:foreground (\, zenburn-green+4)))))) ( (zenburn-blue ((t (:foreground (, zenburn-blue)))))) ( (zenburn-blue-1 ((t (:foreground (\, zenburn-blue-1)))))) ( (zenburn-blue-2 ((t (:foreground (, zenburn-blue-2)))))) ( (zenburn-blue-3 ((t (:foreground (\, zenburn-blue-3)))))) ( (zenburn-blue-4 ((t (:foreground (, zenburn-blue-4)))))) ( (zenburn-magenta ((t (:foreground (\, zenburn-magenta)))))) (quote (zenburn-title ((t (:inherit variable-pitch :weight bold))))) (quote (font-lock-builtin ((t (:inherit zenburn-blue))))) (quote (font-lock-comment ((t (:inherit zenburn-green))))) (quote (font-lock-comment-delimiter ((t (:inherit zenburn-lowlight-2))))) (quote (font-lock-constant ((t (:inherit zenburn-primary-4))))) (quote (font-lock-doc ((t (:inherit zenburn-green+1))))) ( (font-lock-doc-string ((t (:foreground (, zenburn-blue+1)))))) ( (font-lock-function-name ((t (:foreground (\, zenburn-blue)))))) (quote (font-lock-keyword ((t (:inherit zenburn-primary-1))))) (quote (font-lock-negation-char ((t (:inherit zenburn-primary-1))))) (quote (font-lock-preprocessor ((t (:inherit zenburn-blue))))) (quote (font-lock-string ((t (:inherit zenburn-red))))) (quote (font-lock-type ((t (:inherit zenburn-primary-3))))) ...) (append (list (quote color-theme-zenburn) ( ((background-color , zenburn-bg) (background-mode . dark) (border-color , zenburn-bg) (foreground-color , zenburn-fg) (mouse-color , zenburn-fg))) ( ((emms-mode-line-icon-color \, zenburn-fg) (goto-address-mail-face . italic) (goto-address-mail-mouse-face . secondary-selection) (goto-address-url-face . bold) (goto-address-url-mouse-face . hover-highlight) (help-highlight-face . hover-highlight) (imaxima-label-color \, zenburn-yellow) (imaxima-equation-color \, zenburn-fg) (list-matching-lines-face . bold) (view-highlight-face . hover-highlight) (widget-mouse-face . hover-highlight))) (quote (bold ((t (:weight bold))))) (quote (bold-italic ((t (:italic t :weight bold))))) ( (default ((t (:background (, zenburn-bg) :foreground (, zenburn-fg)))))) (quote (fixed-pitch ((t (:weight bold))))) (quote (italic ((t (:slant italic))))) (quote (underline ((t (:underline t))))) ( (zenburn-background-1 ((t (:background (\, zenburn-bg+1)))))) ( (zenburn-background-2 ((t (:background (, zenburn-bg+2)))))) ( (zenburn-primary-1 ((t (:foreground (\, zenburn-yellow) :weight bold))))) ( (zenburn-primary-2 ((t (:foreground (, zenburn-orange) :weight bold))))) (quote (zenburn-primary-3 ((t (:foreground "#dfdfbf" :weight bold))))) (quote (zenburn-primary-4 ((t (:foreground "#dca3a3" :weight bold))))) (quote (zenburn-primary-5 ((t (:foreground "#94bff3" :weight bold))))) (quote (zenburn-highlight-damp ((t (:foreground "#88b090" :background "#2e3330"))))) (quote (zenburn-highlight-alerting ((t (:foreground "#e37170" :background "#332323"))))) (quote (zenburn-highlight-subtle ((t (:background "#464646"))))) (quote (zenburn-lowlight-1 ((t (:foreground "#606060"))))) (quote (zenburn-lowlight-2 ((t (:foreground "#708070"))))) ( (zenburn-yellow ((t (:foreground (\, zenburn-yellow)))))) ( (zenburn-orange ((t (:foreground (, zenburn-orange)))))) ( (zenburn-red ((t (:foreground (\, zenburn-red)))))) ( (zenburn-green-1 ((t (:foreground (, zenburn-green-1)))))) ( (zenburn-green ((t (:foreground (\, zenburn-green)))))) ( (zenburn-green+1 ((t (:foreground (, zenburn-green+1)))))) ( (zenburn-green+2 ((t (:foreground (\, zenburn-green+2)))))) ( (zenburn-green+3 ((t (:foreground (, zenburn-green+3)))))) ( (zenburn-green+4 ((t (:foreground (\, zenburn-green+4)))))) ( (zenburn-blue ((t (:foreground (, zenburn-blue)))))) ( (zenburn-blue-1 ((t (:foreground (\, zenburn-blue-1)))))) ( (zenburn-blue-2 ((t (:foreground (, zenburn-blue-2)))))) ( (zenburn-blue-3 ((t (:foreground (\, zenburn-blue-3)))))) ( (zenburn-blue-4 ((t (:foreground (, zenburn-blue-4)))))) ( (zenburn-magenta ((t (:foreground (\, zenburn-magenta)))))) (quote (zenburn-title ((t (:inherit variable-pitch :weight bold))))) (quote (font-lock-builtin ((t (:inherit zenburn-blue))))) (quote (font-lock-comment ((t (:inherit zenburn-green))))) (quote (font-lock-comment-delimiter ((t (:inherit zenburn-lowlight-2))))) (quote (font-lock-constant ((t (:inherit zenburn-primary-4))))) (quote (font-lock-doc ((t (:inherit zenburn-green+1))))) ( (font-lock-doc-string ((t (:foreground (, zenburn-blue+1)))))) ( (font-lock-function-name ((t (:foreground (\, zenburn-blue)))))) (quote (font-lock-keyword ((t (:inherit zenburn-primary-1))))) (quote (font-lock-negation-char ((t (:inherit zenburn-primary-1))))) (quote (font-lock-preprocessor ((t (:inherit zenburn-blue))))) (quote (font-lock-string ((t (:inherit zenburn-red))))) (quote (font-lock-type ((t (:inherit zenburn-primary-3))))) ...) (zenburn-make-face-alias-clauses (quote (Buffer-menu-buffer-face apt-utils-broken-face apt-utils-description-face apt-utils-field-contents-face apt-utils-field-keyword-face apt-utils-normal-package-face apt-utils-summary-face apt-utils-version-face apt-utils-virtual-package-face breakpoint-disabled-bitmap-face breakpoint-enabled-bitmap-face calendar-today-face change-log-date-face compilation-info-face compilation-warning-face cua-rectangle-face custom-button-face custom-button-pressed-face custom-changed-face custom-comment-face custom-comment-tag-face custom-documentation-face custom-face-tag-face custom-group-tag-face custom-group-tag-face-1 custom-invalid-face custom-modified-face custom-rogue-face custom-saved-face custom-set-face custom-state-face custom-variable-button-face custom-variable-tag-face diary-face dictionary-button-face dictionary-reference-face dictionary-word-entry-face diff-added-face diff-context-face diff-file-header-face diff-header-face diff-hunk-header-face diff-index-face diff-removed-face diff-refine-change-face emms-pbi-current-face emms-pbi-mark-marked-face emms-pbi-song-face erc-action-face erc-bold-face ...)))) (color-theme-install (append (list (quote color-theme-zenburn) ( ((background-color , zenburn-bg) (background-mode . dark) (border-color , zenburn-bg) (foreground-color , zenburn-fg) (mouse-color , zenburn-fg))) ( ((emms-mode-line-icon-color \, zenburn-fg) (goto-address-mail-face . italic) (goto-address-mail-mouse-face . secondary-selection) (goto-address-url-face . bold) (goto-address-url-mouse-face . hover-highlight) (help-highlight-face . hover-highlight) (imaxima-label-color \, zenburn-yellow) (imaxima-equation-color \, zenburn-fg) (list-matching-lines-face . bold) (view-highlight-face . hover-highlight) (widget-mouse-face . hover-highlight))) (quote (bold ((t (:weight bold))))) (quote (bold-italic ((t (:italic t :weight bold))))) ( (default ((t (:background ... :foreground ...))))) (quote (fixed-pitch ((t (:weight bold))))) (quote (italic ((t (:slant italic))))) (quote (underline ((t (:underline t))))) ( (zenburn-background-1 ((t (:background ...))))) ( (zenburn-background-2 ((t (:background ...))))) ( (zenburn-primary-1 ((t (:foreground ... :weight bold))))) ( (zenburn-primary-2 ((t (:foreground ... :weight bold))))) (quote (zenburn-primary-3 ((t (:foreground "#dfdfbf" :weight bold))))) (quote (zenburn-primary-4 ((t (:foreground "#dca3a3" :weight bold))))) (quote (zenburn-primary-5 ((t (:foreground "#94bff3" :weight bold))))) (quote (zenburn-highlight-damp ((t (:foreground "#88b090" :background "#2e3330"))))) (quote (zenburn-highlight-alerting ((t (:foreground "#e37170" :background "#332323"))))) (quote (zenburn-highlight-subtle ((t (:background "#464646"))))) (quote (zenburn-lowlight-1 ((t (:foreground "#606060"))))) (quote (zenburn-lowlight-2 ((t (:foreground "#708070"))))) ( (zenburn-yellow ((t (:foreground ...))))) ( (zenburn-orange ((t (:foreground ...))))) ( (zenburn-red ((t (:foreground ...))))) ( (zenburn-green-1 ((t (:foreground ...))))) ( (zenburn-green ((t (:foreground ...))))) ( (zenburn-green+1 ((t (:foreground ...))))) ( (zenburn-green+2 ((t (:foreground ...))))) ( (zenburn-green+3 ((t (:foreground ...))))) ( (zenburn-green+4 ((t (:foreground ...))))) ( (zenburn-blue ((t (:foreground ...))))) ( (zenburn-blue-1 ((t (:foreground ...))))) ( (zenburn-blue-2 ((t (:foreground ...))))) ( (zenburn-blue-3 ((t (:foreground ...))))) ( (zenburn-blue-4 ((t (:foreground ...))))) ( (zenburn-magenta ((t (:foreground ...))))) (quote (zenburn-title ((t (:inherit variable-pitch :weight bold))))) (quote (font-lock-builtin ((t (:inherit zenburn-blue))))) (quote (font-lock-comment ((t (:inherit zenburn-green))))) (quote (font-lock-comment-delimiter ((t (:inherit zenburn-lowlight-2))))) (quote (font-lock-constant ((t (:inherit zenburn-primary-4))))) (quote (font-lock-doc ((t (:inherit zenburn-green+1))))) ( (font-lock-doc-string ((t (:foreground ...))))) (` (font-lock-function-name ((t (:foreground ...))))) (quote (font-lock-keyword ((t (:inherit zenburn-primary-1))))) (quote (font-lock-negation-char ((t (:inherit zenburn-primary-1))))) (quote (font-lock-preprocessor ((t (:inherit zenburn-blue))))) (quote (font-lock-string ((t (:inherit zenburn-red))))) (quote (font-lock-type ((t (:inherit zenburn-primary-3))))) ...) (zenburn-make-face-alias-clauses (quote (Buffer-menu-buffer-face apt-utils-broken-face apt-utils-description-face apt-utils-field-contents-face apt-utils-field-keyword-face apt-utils-normal-package-face apt-utils-summary-face apt-utils-version-face apt-utils-virtual-package-face breakpoint-disabled-bitmap-face breakpoint-enabled-bitmap-face calendar-today-face change-log-date-face compilation-info-face compilation-warning-face cua-rectangle-face custom-button-face custom-button-pressed-face custom-changed-face custom-comment-face custom-comment-tag-face custom-documentation-face custom-face-tag-face custom-group-tag-face custom-group-tag-face-1 custom-invalid-face custom-modified-face custom-rogue-face custom-saved-face custom-set-face custom-state-face custom-variable-button-face custom-variable-tag-face diary-face dictionary-button-face dictionary-reference-face dictionary-word-entry-face diff-added-face diff-context-face diff-file-header-face diff-header-face diff-hunk-header-face diff-index-face diff-removed-face diff-refine-change-face emms-pbi-current-face emms-pbi-mark-marked-face emms-pbi-song-face erc-action-face erc-bold-face ...)))))
zenburn()
call-interactively(zenburn t nil)
execute-extended-command(nil)
call-interactively(execute-extended-command nil nil)

custom-theme-load-path tweak breaks

When installing via package.el, this line breaks when the theme is actually loaded:

(add-to-list 'custom-theme-load-path (file-name-as-directory (file-name-directory load-file-name)))

I get Wrong type argument: stringp, nil.

Note that this line is extracted into zenburn-theme-autoloads.el and works fine there. Perhaps package.el needs special casing to handle things that aren't loaded via the load-path?

emacs 24 ansi-term seems to ignore theme colors

ansi-term seems to ignore the variables ansi-color-names-vector and ansi-color-map. I've checked the values of those variables and they do contain zenburn color values, but the color of my ansi-term prompt, directories, etc., are still the same shade of color as I have defined in PS1. I have used this same theme in emacs23 with the external color-theme extension and the shades of blue, magenta, etc. use the proper zenburn color scheme.

Please see http://stackoverflow.com/questions/11799184/emacs-24-ansi-term-seems-to-ignore-theme-colors for some screenshots.

Installing zenburn on aquamacs

I failed to install the zenburn theme using Aquamacs. The best I could get is to add the following line:
(load-file "~/Library/elisp/themes/zenburn-theme.el")
to my .emacs file. However, when I restart Auqamacs, the theme is not properly loaded, and I have to evaluate this line manually.

I don't know how to install it properly. I would love to answer questions that will clarify the problem.

Thanks in advance!

disable-theme not working

In Emacs 24 with the deftheme theme: (load-theme 'zenburn) then (disable-theme 'zenburn) does not go back to the default emacs theme, but leaves the background dark and just some face colors are changed.

Can someone reproduce that? I tested with the adwaita theme and there it resets correctly.

Edit: This is probably caused by something in my emacs setup, on an emacs -q the above loading/unloading works. I run the above in an emacsclient -c created frame though.

Error in loading of zenburn theme

Hi, I am on emacs 23.3.1 and unable to load the zenburn theme. I am on Xubuntu Linux and have installed color-theme (via the Debian package) and I am able to install other custom color themes. When I try to load the zenburn theme, I get this error message:

Debugger entered--Lisp error: (void-variable zenburn-yellow\,)
  (list (quote :background) zenburn-yellow\, (quote :foreground) zenburn-red)
  (list class (list (quote :background) zenburn-yellow\, (quote :foreground) zenburn-red))
  (list (list class (list ... zenburn-yellow\, ... zenburn-red)))
  (list (quote whitespace-indentation) (list (list class ...)))
  (\` (whitespace-indentation (...)))
  (custom-theme-set-faces (quote zenburn) (quote (button ...)) (\` (link ...)) (\` (link-visited ...)) (\` (default ...)) (\` (cursor ...)) (\` (escape-glyph-face ...)) (\` (fringe ...)) (\` (header-line ...)) (\` (highlight ...)) (\` (compilation-column-face ...)) (\` (compilation-enter-directory-face ...)) (\` (compilation-error-face ...)) (\` (compilation-face ...)) (\` (compilation-info-face ...)) (\` (compilation-info ...)) (\` (compilation-leave-directory-face ...)) (\` (compilation-line-face ...)) (\` (compilation-line-number ...)) (\` (compilation-message-face ...)) (\` (compilation-warning-face ...)) (\` (grep-context-face ...)) (\` (grep-error-face ...)) (\` (grep-hit-face ...)) (\` (grep-match-face ...)) (\` (match ...)) (\` (isearch ...)) (\` (isearch-fail ...)) (\` (lazy-highlight ...)) (\` (menu ...)) (\` (minibuffer-prompt ...)) (\` (mode-line ...)) (\` (mode-line-buffer-id ...)) (\` (mode-line-inactive ...)) (\` (region ...)) (\` (secondary-selection ...)) (\` (trailing-whitespace ...)) (\` (vertical-border ...)) (\` (font-lock-builtin-face ...)) (\` (font-lock-comment-face ...)) (\` (font-lock-comment-delimiter-face ...)) (\` (font-lock-constant-face ...)) (\` (font-lock-doc-face ...)) (\` (font-lock-doc-string-face ...)) (\` (font-lock-function-name-face ...)) (\` (font-lock-keyword-face ...)) (\` (font-lock-negation-char-face ...)) (\` (font-lock-preprocessor-face ...)) (\` (font-lock-string-face ...)) ...)
  (let ((class ...) (zenburn-fg "#dcdccc") (zenburn-fg-1 "#656555") (zenburn-bg-1 "#2b2b2b") (zenburn-bg-05 "#383838") (zenburn-bg "#3f3f3f") (zenburn-bg+1 "#4f4f4f") (zenburn-bg+2 "#5f5f5f") (zenburn-bg+3 "#6f6f6f") (zenburn-red+1 "#dca3a3") (zenburn-red "#cc9393") (zenburn-red-1 "#bc8383") (zenburn-red-2 "#ac7373") (zenburn-red-3 "#9c6363") (zenburn-red-4 "#8c5353") (zenburn-orange "#dfaf8f") (zenburn-yellow "#f0dfaf") (zenburn-yellow-1 "#e0cf9f") (zenburn-yellow-2 "#d0bf8f") (zenburn-green-1 "#5f7f5f") (zenburn-green "#7f9f7f") (zenburn-green+1 "#8fb28f") (zenburn-green+2 "#9fc59f") (zenburn-green+3 "#afd8af") (zenburn-green+4 "#bfebbf") (zenburn-cyan "#93e0e3") (zenburn-blue+1 "#94bff3") (zenburn-blue "#8cd0d3") (zenburn-blue-1 "#7cb8bb") (zenburn-blue-2 "#6ca0a3") (zenburn-blue-3 "#5c888b") (zenburn-blue-4 "#4c7073") (zenburn-blue-5 "#366060") (zenburn-magenta "#dc8cc3")) (custom-theme-set-faces (quote zenburn) (quote ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) (\` ...) ...))
  eval-buffer(#> nil "/home/midpeter444/.emacs.d/site-lisp/color-theme-zenburn.el" nil t)  ; Reading at buffer position 26219
  load-with-code-conversion("/home/midpeter444/.emacs.d/site-lisp/color-theme-zenburn.el" "/home/midpeter444/.emacs.d/site-lisp/color-theme-zenburn.el" nil t)
  require(color-theme-zenburn)
  eval-buffer(# nil "/home/midpeter444/.emacs" nil t)  ; Reading at buffer position 10275
  load-with-code-conversion("/home/midpeter444/.emacs" "/home/midpeter444/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "�\205\264

More Background:
I downloaded zenburn-theme with wget https://raw.github.com/bbatsov/zenburn-emacs/master/zenburn-theme.el to my site-lisp dir (on my default load-path) and put this in my .emacs:

(require 'color-theme-zenburn)
(color-theme-zenburn)

I tried everything above (and a few more things) two or three times, always with same result.

Thanks for looking into this,
Michael

color-theme-zenburn fails to byte-compile

When trying to byte-compile color-theme-zenburn.el, compilation fails with the following error:

color-theme-zenburn.el:98:4:Error: Variable binding depth exceeds max-specpdl-size

Symbol's value as variable is void: theme

Hi,
I put the zenburn-theme in the /.emacs.d/themes directory and add this to my .emacs:
(add-to-list 'custom-theme-load-path "
/.emacs.d/themes/")
(load theme 'zenburn t)

When starting emacs I have the following error message:
Warning (initialization): An error occurred while loading `/home/denis/.emacs':
Symbol's value as variable is void: theme

After starting emacs with --debug-init, here's the message:
Debugger entered--Lisp error: (void-variable theme)
(load theme (quote zenburn) t)
eval-buffer(#<buffer load> nil "/home/denis/.emacs" nil t) ; Reading at buffer position 28583
load-with-code-conversion("/home/denis/.emacs" "/home/denis/.emacs" t t)
load("~/.emacs" t t)

[0 "^H�\205\262^@ \306=\203^Q^@\307^H\310Q\202;^Q \311=\204^^^@\307^H\312Q\202;^@��\313\307\314\315#\203*^@\316\202;^@\313\307\314\317#\203:^@\320\nB^R\321\202;^@\316\322^S\323^A\322\211#\210^K\322=\203a^@\324\325\326\307^H\327Q!"\323^A\322\211#\210^K\322=\203^@^A^S\210^K\203\243^@\330^K!\331\232\203\243^@\332^K!\211\333P\334^A!\203}^@\211\202\210^@\334^B!\203\207^@^A\202\210^@\314\262^B^A\203\241^@\335^B^K\"\203\237^@\336\337^C^K#\210\340\341!\210^A^S\266^B\f?\205\260^@\314^]\323\342\322\211#)\262^A\207" [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" (initialization "_emacs' init file is deprecated, please use `.emacs'") "~/_emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default"] 7 "\n\n(fn)"]()

command-line()
normal-top-level()

Any idea what cause this? The theme doesn't load. Thanks!
Denis

ido: changing face from bold to normal

If loaded with (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") the faces (ido-first-match ((,class (:foreground ,zenburn-yellow :weight bold)))) and (ido-first-match ((,class (:foreground ,zenburn-yellow)))) result in the same bold foreground, but loading with (load-file "/path/to/zenburn-theme.el") applies the changes correctly.

What's difference between the loadings?

Compilation failure

Compilation failure on the emacs that Apple ships on OSX Lion (22.1.1); here's the --debug-init output: http://pastebin.com/xVgyJWwq

Also fails on emacs 23.2.1:
site-lisp/zenburn-emacs/color-theme-zenburn.el:96:4:Error: Variable binding depth exceeds max-specpdl-size

Headings in rst's

Thanks a lot for maintaining this wonderfull theme!

On both, Emacs 23 and 24, in *.rst files headings like:

=====
 foo
=====

are represented via grey fonts on a grey background. I added the following to color-theme-zenburn.el which makes the headings look good in Emacs 24:

diff --git a/color-theme-zenburn.el b/color-theme-zenburn.el
index 9d203da..0bf0c4f 100644
--- a/color-theme-zenburn.el
+++ b/color-theme-zenburn.el
@@ -454,6 +454,14 @@
      (rpm-spec-tag-face ((t (:foreground ,zenburn-blue))))
      (rpm-spec-var-face ((t (:foreground ,zenburn-red))))

+     ;; rst-mode
+     (rst-level-1-face ((t (:foreground ,zenburn-orange))))
+     (rst-level-2-face ((t (:foreground ,zenburn-green+1))))
+     (rst-level-3-face ((t (:foreground ,zenburn-blue-1))))
+     (rst-level-4-face ((t (:foreground ,zenburn-yellow-2))))
+     (rst-level-5-face ((t (:foreground ,zenburn-cyan))))
+     (rst-level-6-face ((t (:foreground ,zenburn-green-1))))
+
      ;; show-paren
      (show-paren-mismatch ((t (:foreground ,zenburn-red-3 :weight bold))))
      (show-paren-match ((t (:foreground ,zenburn-blue-1 :weight bold))))

I took the same colors as for the org-mode levels.

On Emacs 23 things seem to be a bit more complicated, I didn't manage to get the colors right there.

Regards

color-theme-select broken

After enabling (color-theme-zenburn) color-theme-select only shows an empty buffer. Messages contains:

face-attribute: Invalid face: erc-default

I use the default color-theme-package shipped with emacs 23.3.1.

Versions:

ERC Version 5.3 (GNU Emacs 23.3.1)
GNU Emacs 23.3.1

Hard to read fonts in dired

Some fonts in dired (dired+), in particular dark blue ones are hard to see in Zenburn (e.g. see below). What can be done to fix them?

            snpshot_061

            snpshot_062

mode-line-buffer-identification, mode-line-frame-identification and erc-mode-line-format changes

Please consider the following changes:

148,152c148,160
< (setq-default mode-line-buffer-identification
<               (list (propertize "%12b" 'face
<                                 (list :weight 'bold
<                                       :foreground zenburn-yellow))))
< (setq-default mode-line-frame-identification "")

---
> ;;; MAF: Remove the code which defines mode-line-buffer-identification
> ;;;      as it eliminates formatting provided in emacs' bindings.el.
> ;;;      Instead define a face for mode-line-buffer-id in the color-theme-zenburn defun.
> ;;;      Including the mode-line-buffer-id face definition will also format modes that
> ;;;          change mode-line-buffer-identification (e.g. dired, info, many others).
> ;;;(setq-default mode-line-buffer-identification
> ;;;              (list (propertize "%12b" 'face
> ;;;                                (list :weight 'bold
> ;;;                                      :foreground zenburn-yellow))))
> ;;; MAF: Remove the code which defines mode-line-frame-identification
> ;;;      as it eliminates formatting provided in emacs' bindings.el and adds nothing.
> ;;;(setq-default mode-line-frame-identification "")
> ;;; MAF: Change "%t" to "%S" as is originally defined in erc.el.
154c162
<               (concat (propertize "%t" 'face

---
>               (concat (propertize "%S" 'face
387a396,399
> ;;; MAF: Define a face for mode-line-buffer-id in the color-theme-zenburn defun.
> ;;;      Including the mode-line-buffer-id face definition will also format modes that
> ;;;          change mode-line-buffer-identification (e.g. dired, info, many others).
>           `(mode-line-buffer-id ((t (:foreground ,zenburn-yellow :weight bold))))

Can't load on init after installing with melpa

I'm running 24.1.50.2 and installed the theme throught melpa.
It all works fine when I do a manually load-theme, but doesn't work when I put it in my init file.
I can reselect it manually after init though, so I'm not sure if it's an issue of trying to load it too soon.
The custom-theme-load-path var is set correctly after init.

I took the theme file and put in my custom theme path manually and it works fine with load-theme in init.

Failed to load theme in Emacs 24

After following the instructions in the README file for Emacs 24, I get this error message:

Warning (initialization): An error occurred while loading `/home/victor/.emacs.d/init.el':

Wrong type argument: symbolp, (custom-theme-directory t)

Incorrect background color(?)

edit After reading this, it seems like this isn't a Zenburn issue at all. It looks like a fix can be achieved using:

brew install emacs --use-git-head --cocoa --srgb

I have a curious issue regarding Zenburn's background color. The color, which is defined as #3F3F3F, appears as #505050, using the DigitalColor Meter app on OS X with the standard sRGB setting (and converting its value from RGB to hex). However, if I change the DigitalColor Meter to use Generic RGB, it says that Emacs' background color is, in fact, #3F3F3F.

I don't know anything about sRGB vs Generic RGB, but it seems as if Emacs is rendering hex values in Generic RGB, whereas MacVim is rendering with sRGB. I believe that the MacVim theme is consistent with Jani Nurminen's original design (author of Zenburn -- see http://slinky.imukuppi.org/zenburnpage/ for reference).

I've attached a screenshot highlighting these differences.

Could anyone weigh in on how to account for the sRGB / Generic RGB difference?

Dan

screen shot 2013-07-11 at 11 32 53 am

Face suggestions

(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(flymake-errline ((t (:underline "red"))))
'(flymake-warnline ((t (:underline "goldenrod1"))))
'(flyspell-duplicate ((t (:underline "goldenrod1"))))
'(flyspell-incorrect ((t (:underline "red"))))
'(fringe ((((class color) (background dark)) (:background "#383838" :foreground "#dcdccc"))))
'(hl-line ((t (:background "#383838"))))
'(mode-line ((t (:background "#2b2b2b" :foreground "#dcdccc"))))
'(mode-line-highlight ((t (:foreground "white" :weight bold))))
'(mode-line-inactive ((t (:background "#2b2b2b" :foreground "#5f5f5f"))))
'(whitespace-line ((t (:inherit fringe :foreground "violet")))))

I can create a patch if you like it.

Hard to read selections on helm

After selection, the face for some items in Helm buffers is very hard to read. Below is an example.

Selecting the first item in the list:

                       snpshot_059

Selecting the second item in the list:

                      snpshot_060-AVAZQUEZ12LAP

The list above is from M-x helm-buffers-list, and the second item is a Dired buffer.

Which fonts are responsible for this, and how could we fix this?

hl-line and region have the same background

Currently hl-line and the region use the same background color. This makes the region invisible on the current line. I propose to use the opposite color (zenburn-bg+1 instead of -1) for hl-line:

`(hl-line-face ((,class (:background ,zenburn-bg+1))))

provide feature in files defining themes?

What do you think should a library that defines a theme also provide a feature?

I have a function ...-library-p which determines if a file is an emacs lisp library (as opposed to a file that just happens to contain some elisp snippets) and am uncertain if I should add an exception to the rule "if it does not provide a feature it ain't a library" for files that define a theme.

Ansi colors: Invalid face color

In Emacs24, when using swank-clojure 1.4 via clojure-jack-in, which provides ANSI-colored stack-traces,
the colors do not show when zenburn is active. Instead the *Messages* buffer shows "Invalid face color"
messages.

Commenting out the definition of ansi-color-names-vector (starting on line 472 in zenburn-theme.el) makes the
ANSI colors visible again (with their default garish colors).

Emacs version is 24.0.93.1 (x86_64-pc-linux-gnu, GTK+ Version 3.2.3), zenburn-theme.el is from a919259 (current master).

Glad to try out any suggestions.

Wrong type argument: stringp, nil

M-x load-theme
zenburn
file-name-as-directory: Wrong type argument: stringp, nil

marmalade package: zenburn-theme 1.0

This is GNU Emacs 24.0.91.1 (x86_64-apple-darwin, NS apple-appkit-1038.35)
of 2011-10-31 on virtualmac.porkrind.org

hi~ just give some advise~~

thank you for you doing,it so important for you!
in this version ,I‘am very glad to find
1、in org-mode, * indicator's color is so various. when previous version, level3 - level5 , i cannot distinguish them almost
I think (color-theme-deep-blue) is the best for this.
2、in dired buffer, dired-mark-subdir-files command(shortcut key *s), color is not default red color, because it so dazzling,
not fit Zenburn style at all. And,I use Emacs in text terminal, use dired-mode select files, cannot see file name at all

but have some problem:
1、previous version, if in .emacs, add follow code (require 'zenburn) (zenburn), when M-x color-theme-select , give a error tips:"face-attribute: Invalid face: custom-face-tag“,
and this version, if use theme old 6.60 version load (color-theme-zenburn), M-x color-theme-select ,give error tips "face-attribute: Invalid face: erc-default”,
if overwrite theme 6.60 with new 6.61, give another error tips "if: Symbol's function definition is void: color-theme-initialize"
so i cannot but keep two directory for place old theme liabary and zenburn files individual.

2、I often work on linux text terminal, selection region invisible in this case. so I think maybe gived another file for terminal
use. i fix some line. It work all perfect in x-window and text terminal.
(region ((t (:background ,"#506070"))))
(secondary-selection ((t (:background ,"darkslateblue"))))
I know there will be a better color, but i not understand color's code. I just hope you'll consider my advice and requirement

thanks.

Some minor thirdparty theme

Hi, here is some theme fix for thiry-party packages I use. (xcscope.el, speedbar, ac-etags) Only speedbar is included as emacs 24 default package, so this patch is quite low-priority.

Besides, zenburn-theme 2.0 still doesn't work on ansi-term

*** zenburn-theme.el.orig 2013-05-19 22:03:54.000000000 +0800
--- zenburn-theme.el 2013-05-19 22:26:57.000000000 +0800


*** 720,727 ****
--- 720,751 ----
;;;;; yascroll
(yascroll:thumb-text-area ((t (:background ,zenburn-bg-1)))) (yascroll:thumb-fringe ((t (:background ,zenburn-bg-1 :foreground ,zenburn-bg-1))))

  • ;;;;; cscope
  • `(cscope-file-face ((t (:foreground ,zenburn-yellow))))
  • `(cscope-function-face ((t (:foreground ,zenburn-cyan))))
  • `(cscope-line-number-face ((t (:foreground ,zenburn-red))))
  • `(cscope-line-face ((t (:foreground ,zenburn-green))))
  • `(cscope-mouse-face ((t (:foreground ,zenburn-fg :background ,zenburn-blue))))
  • ;;;;; speedbar
  • `(speedbar-button-face ((t (:foreground ,zenburn-green+3))))
  • `(speedbar-file-face ((t (:foreground ,zenburn-cyan))))
  • `(speedbar-directory-face ((t (:foreground ,zenburn-blue+1))))
  • `(speedbar-tag-face ((t (:foreground ,zenburn-yellow))))
  • `(speedbar-selected-face ((t (:foreground ,zenburn-red))))
  • `(speedbar-highlight-face ((t (:foreground ,zenburn-green-1))))
  • `(speedbar-separator-face ((t (:foreground ,zenburn-fg :background ,zenburn-blue))))
  • ;;;;; ac-etags
  • `(ac-etags-candidate-face ((t (:background ,zenburn-bg+3 :foreground "black"))))
  • `(ac-etags-selection-face ((t (:background ,zenburn-blue-4 :foreground ,zenburn-fg))))
  • ))

;;; Theme Variables
(zenburn-with-color-variables
(custom-theme-set-variables

'face-attribute: Invalid face: unspecified' error when `ls` in terminal mode

Hi:

When I'm inside a terminal (M-x term) and do an ls in a directory that contains directories, I get the following error:

error in process filter: face-attribute: Invalid face: unspecified
error in process filter: Invalid face: unspecified

The terminal get stuck. I need to C-c C-c to get the prompt again.

The ls works OK when there are only files in the directory.

I'm running emacs version 24.3.50.1, and my zenburn configuration is

(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
(load-theme 'zenburn t)

org-export-as-html "wrong type argument: symbolp"

Hi,

Thanks for your work.

Emacs gives the following error message when export a org file to HTML:
face-attribute: Wrong type argument: symbolp, (quote zenburn-highlight-alerting)

Any idea on this?

Regards,
Wenshan

Advice rainbow-turn-on causes an error

  • Issue
    This advice breaks the zenburn package.
(defadvice rainbow-turn-on (after zenburn activate)
    ...)

The error message is

ad-Advice-rainbow-turn-on: Wrong type argument: stringp, nil
  • Version
    • emacs 24.3.1 and 24.3.50.1
    • zenburn 20130513.1724
    • rainbow 0.8

Running emacs --debug-init did not give more information about the error.

("emacs")
Loading 00debian-vars...done
Loading /etc/emacs-snapshot/site-start.d/00emacs-snapshot-common.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Skipping dictionaries-common setup for emacs-snapshot
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50emacs-calfw.el (source)...done
Loading /etc/emacs/site-start.d/50emacs-goodies-el.el (source)...done
Loading /etc/emacs/site-start.d/50emacs-intl-fonts.el (source)...done
Loading /etc/emacs/site-start.d/50gnu-smalltalk-el.el (source)...
Error while loading 50gnu-smalltalk-el: Symbol's value as variable is void: inhibit-first-line-modes-regexps
Loading /etc/emacs/site-start.d/50golang-mode.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...
Loading cjk-enc...done
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done
Loading /etc/emacs/site-start.d/50pylint.el (source)...
Loading pylint...done
Loading /etc/emacs/site-start.d/50pylint.el (source)...done
Loading /etc/emacs/site-start.d/50thailatex.el (source)...done
Prelude is powering up... Be patient, Master wjiang!
Source file `/home/wjiang/.emacs.d/core/prelude-packages.el' newer than byte-compiled file
Loading /home/wjiang/.emacs.d/elpa/zenburn-theme-20130513.1724/zenburn-theme.el (source)...done
Loading /home/wjiang/.emacs.d/savefile/recentf...done
Cleaning up the recentf list...done (0 removed)
[yas] Prepared just-in-time loading for /home/wjiang/.emacs.d/elpa/yasnippet-20130505.2115/snippets
[yas] Prepared just-in-time loading for ~/.emacs.d/snippets
[yas] Prepared just-in-time loading for /home/wjiang/.emacs.d/snippets
[yas] Prepared just-in-time loading for /home/wjiang/.emacs.d/personal/snippets
[yas] Reloaded everything (snippets will load just-in-time)....
Loading /home/wjiang/.emacs.d/prelude-modules.el (source)...
SLIME is not installed. Use Quicklisp to install it.
Loading /home/wjiang/.emacs.d/prelude-modules.el (source)...done
Loading /home/wjiang/.emacs.d/personal/custom.el (source)...done
Prelude is ready to do thy bidding, Master wjiang!
[yas] Cyclic parenthood: mode text-mode has already seen as a parent of mode emacs-lisp-mode
[yas] Loading for `emacs-lisp-mode', just-in-time: (yas--load-directory-1 /home/wjiang/.emacs.d/elpa/yasnippet-20130505.2115/snippets/emacs-lisp-mode (quote emacs-lisp-mode) (quote (text-mode)))!
[yas] Loading compiled snippets from /home/wjiang/.emacs.d/elpa/yasnippet-20130505.2115/snippets/emacs-lisp-mode
[yas] Loading for `text-mode', just-in-time: (yas--load-directory-1 /home/wjiang/.emacs.d/elpa/yasnippet-20130505.2115/snippets/text-mode (quote text-mode) (quote nil))!
[yas] Loading compiled snippets from /home/wjiang/.emacs.d/elpa/yasnippet-20130505.2115/snippets/text-mode
Starting new Ispell process [aspell::default] ...
ad-Advice-rainbow-turn-on: Wrong type argument: stringp, nil

Missing face from auctex

The following font faces are missing. Those are pretty useful for LaTeX document.
In particular `font-latex-sedate' which highlight commands which are not knwon to AuCTeX
(mostly all commands comingfrom packages).

'(font-latex-bold ((t (:inherit bold))))
 '(font-latex-warning ((t (:inherit font-lock-warning))))
 '(font-latex-sedate ((t (:inherit zenburn-primary-1))))
 '(font-latex-title-4 ((t (:inherit zenburn-title))))

Best,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.