Btw, ELPA packages are initialized *after* Emacs loads your init file.
So it may often be a good idea to add (package-initialize) very early
in your init file, after you set the package-* options correctly.
Rainer M Krug wrote:
> I just decided to install some standard packages via elpa, and I am running into problems with two
> packages: tabbar and color-theme
> I would like to acivate them in .emacs.d/emacs.el and start the tabbar-mode and set color-theme-hober
> I tried
> (eval-after-load "tabbar"
> '(tabbar-mode)
> )
> but this activates the tabbar mode, but does not show them. I have to disable it and enable it
> again and then can I see the tabbar.
see what happens when you ditch the eval-after-load completely. i
suspect that installing tabbar-mode through elpa already activates it,
so what you're doing with the eval-after-load call is deactivating it
again...
this is telling you that (color-theme-initialize) cannot be a function
(nor name one). which is correct, because it's a list. a list can only
be a function if its first element is the symbol `lambda'.
the reason why emacs thinks (color-theme-initialize) is a function is
because you've misplaced the paren with progn.
use the code snippet i gave above, it should (hopefully ;-) work.
HTH
-- Joost Kremers joostkrem...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Thanks - elisp is still a real challenge for me - I should spend some time on it.
> Btw, ELPA packages are initialized *after* Emacs loads your init file. So it may often be a
> good idea to add (package-initialize) very early in your init file, after you set the package-*
> options correctly.
You are perfectly right here - this is the cause of the problem. I put (package-initialize) in my
init.el and it worked (after the other changes).
and that in my emacs.org (el) file - should I move this into the init.el, or call
(package-initialize) in my emacs.org (el) file after I set the parameter?
Thanks,
Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
> Bastien wrote:
>> Rainer M Krug <R.M.K...@gmail.com> writes:
>>> (eval-after-load "tabbar" '(tabbar-mode) )
>> I think it should be
>> (eval-after-load "tabbar" (tabbar-mode))
>> (no quote)
> eval-after-load is a funtion, so the form to be executed *should* be quoted.
Thanks - this is the problem if one is copy-paste without knowing what these things mean - I stil
think elisp is kind of strange, ur rather unusual for me.
Cheers,
Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
> and that in my emacs.org (el) file - should I move this into the init.el, or call
> (package-initialize) in my emacs.org (el) file after I set the parameter?
You should move this before (package-initialize), otherwise Package will
not be aware of these ELPA repos.
> Rainer M Krug wrote:
>> I just decided to install some standard packages via elpa, and I am running into problems >> with two packages: tabbar and color-theme
>> I would like to acivate them in .emacs.d/emacs.el and start the tabbar-mode and set >> color-theme-hober
>> I tried (eval-after-load "tabbar" '(tabbar-mode) )
>> but this activates the tabbar mode, but does not show them. I have to disable it and enable >> it again and then can I see the tabbar.
> see what happens when you ditch the eval-after-load completely. i suspect that installing > tabbar-mode through elpa already activates it, so what you're doing with the eval-after-load > call is deactivating it again...
Still the problems, but I saw that emacs 24 has it's own way of handling color themes, and that is
what I am using:
> looks much cleaner. (the parens are just there for the computer. as a human, you should ignore > them and look at the indentation.)
Good point - I am used to pascal, R and a bit of C, where the brackets are closing on the new
lines, but I agree - if one looks at the indentation, it is quite easy to understand.
> this is telling you that (color-theme-initialize) cannot be a function (nor name one). which
> is correct, because it's a list. a list can only be a function if its first element is the
> symbol `lambda'.
> the reason why emacs thinks (color-theme-initialize) is a function is because you've misplaced > the paren with progn.
> use the code snippet i gave above, it should (hopefully ;-) work.
Hm - i would say many things still to learn.
Thanks a lot for your explanations,
Rainer
> HTH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
>> and that in my emacs.org (el) file - should I move this into the init.el, or call >> (package-initialize) in my emacs.org (el) file after I set the parameter?
> You should move this before (package-initialize), otherwise Package will not be aware of these
> ELPA repos.
OK - but could I should be able to put these statements as first commands into my emacs.org - correct?
Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
> Still the problems, but I saw that emacs 24 has it's own way > of handling color themes, and that is what I am using:
> (load-theme 'wheatgrass t)
Not quite. Emacs 24 has its own way of handling color schemes, in the general
sense of the word.
Emacs 24 has nothing to do with color themes. It has a similar but separate
feature, called "custom" themes. This is different from color themes, which are
what library `color-theme.el' is about.