From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.help Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1 Date: Fri, 28 Sep 2012 10:03:21 +0200 Message-ID: <506559C9.1090003@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1348819427 10232 80.91.229.3 (28 Sep 2012 08:03:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2012 08:03:47 +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 10:03:53 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 1THVY9-0008Li-0b for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2012 10:03:53 +0200 Original-Received: from localhost ([::1]:57714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THVY3-0002Df-Ri for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2012 04:03:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THVXs-0002DX-Un for help-gnu-emacs@gnu.org; Fri, 28 Sep 2012 04:03:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THVXr-0001vv-Ou for help-gnu-emacs@gnu.org; Fri, 28 Sep 2012 04:03:36 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THVXr-0001vn-IC for help-gnu-emacs@gnu.org; Fri, 28 Sep 2012 04:03:35 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1THVXt-0008G3-Kf for help-gnu-emacs@gnu.org; Fri, 28 Sep 2012 10:03:37 +0200 Original-Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Sep 2012 10:03:37 +0200 Original-Received: from R.M.Krug by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Sep 2012 10:03:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 79 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: arn78-1-88-186-171-7.fbx.proxad.net User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20120907 Thunderbird/16.0 In-Reply-To: X-Enigmail-Version: 1.5a1pre X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:86982 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28/09/12 02:14, Joost Kremers wrote: > 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: (load-theme 'wheatgrass t) > >> 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.) 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. >> >> 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. 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/ iEYEARECAAYFAlBlWckACgkQoYgNqgF2egrwrgCfe4wkc2RXiTwu08caJKI8iIE6 m6AAoIiNWwCx4a7/IagnMwqdxf7dyjKi =fIqu -----END PGP SIGNATURE-----