From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1 Date: 28 Sep 2012 00:14:07 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1348791315 12522 80.91.229.3 (28 Sep 2012 00:15:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2012 00:15:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 28 02:15:21 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1THOEi-0008P8-Gu for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2012 02:15:20 +0200 Original-Received: from localhost ([::1]:56325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THOEd-00044L-B2 for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Sep 2012 20:15:15 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 63 Original-X-Trace: individual.net tK8ARnkd2gyKuCsHBq2iJAprngIECQo4Ps4HMkgfj35c6E5Us+u63EpVrN68IfvxG0 Cancel-Lock: sha1:uQ/yo2F1rNNc+ZFQxeCWNJoOeI0= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:194630 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86966 Archived-At: 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)