From: Joost Kremers <joostkremers@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1
Date: 28 Sep 2012 00:14:07 GMT [thread overview]
Message-ID: <slrnk69quf.8j0.joostkremers@j.kremers4.news.arnhem.chello.nl> (raw)
In-Reply-To: mailman.9853.1348755472.855.help-gnu-emacs@gnu.org
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...
> I get a similar error for
>
> (eval-after-load "color-theme"
> 'progn(
this is wrong. it should be:
'(progn
> (color-theme-initialize)
> (color-theme-hober)
> )
> )
note: the common way to write lisp is to not put the closing parens on a
separate line. just write:
(eval-after-load "color-theme"
'(progn
(color-theme-initialize)
(color-theme-hober)))
looks much cleaner. (the parens are just there for the computer. as a
human, you should ignore them and look at the indentation.)
>
> Debugger entered--Lisp error: (invalid-function (color-theme-initialize))
> ((color-theme-initialize) (color-theme-hober))
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 joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
next parent reply other threads:[~2012-09-28 0:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.9853.1348755472.855.help-gnu-emacs@gnu.org>
2012-09-28 0:14 ` Joost Kremers [this message]
2012-09-28 8:03 ` Activating tabbar after installation via elpa on emacs 24.2.1 Rainer M Krug
2012-09-28 15:09 ` Drew Adams
2012-09-27 14:17 Rainer M Krug
2012-09-27 23:02 ` Bastien
2012-09-28 7:35 ` Rainer M Krug
2012-09-28 7:40 ` Bastien
2012-09-28 8:11 ` Rainer M Krug
2012-09-28 8:25 ` Bastien
2012-09-28 8:29 ` Rainer M Krug
[not found] ` <mailman.9877.1348786974.855.help-gnu-emacs@gnu.org>
2012-09-28 0:02 ` Joost Kremers
2012-09-28 7:38 ` Rainer M Krug
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnk69quf.8j0.joostkremers@j.kremers4.news.arnhem.chello.nl \
--to=joostkremers@yahoo.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).