GithubHelp home page GithubHelp logo

Comments (5)

bbatsov avatar bbatsov commented on July 19, 2024

I've installed it via MELPA myself (as have many Prelude users) and it works just fine. The relevant init file code would be just:

;; use zenburn as the default theme
(load-theme 'zenburn t)

from zenburn-emacs.

hamstah avatar hamstah commented on July 19, 2024

I just tried again with an empty config (same emacs version)

Put that in my .emacs

(require 'package)
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))

then did

M-x list-packages

selected the theme, then install

added the following line to the .emacs

(load-theme 'zenburn t)

Next startup with --debug-init

Debugger entered--Lisp error: (error "Unable to find theme file for `zenburn'")
  signal(error ("Unable to find theme file for `zenburn'"))
  error("Unable to find theme file for `%s'" zenburn)
  load-theme(zenburn t)
  eval-buffer(#<buffer  *load*> nil "/home/nicolas/.emacs" nil t)  ; Reading at buffer position 132
  load-with-code-conversion("/home/nicolas/.emacs" "/home/nicolas/.emacs" t t)
  load("~/.emacs" t t)
  #[0 "�\205\262

It lists as installed in the packages list, installed under elpa as expected
At that point I can't select the theme manually, it doesn't show up in the list of themes and the path to the them

Isn't the install supposed to set the path to the theme itself?

from zenburn-emacs.

bbatsov avatar bbatsov commented on July 19, 2024

It doesn't seem to me you're using MELPA :-)

Themes are not handled specially by the install process, so they have to set the path to them via an autoload (as zenburn does) - have a look at the autogenerated autoloads in the .emacs.d/elpa/zenburn folder and paste them here.

from zenburn-emacs.

hamstah avatar hamstah commented on July 19, 2024

oops sorry yeah, I redid it with melpa instead of marmalade

$ cat .emacs.d/elpa/zenburn-theme-20120502/zenburn-theme-autoloads.el
;;; zenburn-theme-autoloads.el --- automatically extracted autoloads
;;
;;; Code:



;;;### (autoloads nil "zenburn-theme" "zenburn-theme.el" (20387 62514))
;;; Generated autoloads from zenburn-theme.el

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

;;;***


;;;### (autoloads nil nil ("zenburn-theme-pkg.el") (20387 62514 960840))

;;;***


(provide 'zenburn-theme-autoloads)
;; Local Variables:
;; version-control: never
;; no-byte-compile: t
;; no-update-autoloads: t
;; coding: utf-8
;; End:
;;; zenburn-theme-autoloads.el ends here

.emacs

(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)

(load-theme 'zenburn t)

from zenburn-emacs.

hamstah avatar hamstah commented on July 19, 2024

ah. Found my issue. missing the (package-initialize) :| the theme loads fine :)

from zenburn-emacs.

Related Issues (20)

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.