[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#847690: [Pkg-emacsen-addons] Bug#847690: dh-elpa: better handling of `deftheme' themes



Hello,

On Sat 10 Dec 2016 at 09:40AM -07, Sean Whitton wrote:

> Function autoloads are handled elegantly by dh-elpa.  After installing a
> package, you can just put (turn-on-some-global-minor-mode) in your
> ~/.emacs, and everything works fine.
>
> Themes defined with `deftheme' don't work so well.  After installing a
> theme, a simple call to `load-theme' in your ~/.emacs will fail.
>
> Two possible workarounds are:
>
>     (package-initialize)
>     (load-theme 'zenburn t)
>
> or
>
>     (add-hook 'after-init-hook (lambda () (load-theme 'zenburn)))
>
> but this really shouldn't be necessary.

Hmm, I'm not sure, but perhaps this problem is not actually about
`deftheme' themes.  I think perhaps no dh_elpa package autoloads happen
until `package-initialize' is called.  That would make this a 'wontfix'.

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature


Reply to: