Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Activating tabbar after installation via elpa on emacs 24.2.1
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rainer M Krug  
View profile  
 More options Sep 27 2012, 10:17 am
Newsgroups: gnu.emacs.help
From: Rainer M Krug <R.M.K...@gmail.com>
Date: Thu, 27 Sep 2012 16:17:25 +0200
Local: Thurs, Sep 27 2012 10:17 am
Subject: Activating tabbar after installation via elpa on emacs 24.2.1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

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.

(tabbar-mode)

tells me

Debugger entered--Lisp error: (void-function tabbar-mode)

I get a similar error for

(eval-after-load "color-theme"
  'progn(
         (color-theme-initialize)
         (color-theme-hober)
         )
  )

Debugger entered--Lisp error: (invalid-function (color-theme-initialize))
  ((color-theme-initialize) (color-theme-hober))

even though I can execute ALT-x color-theme-initialize

I guess I am missing something basic...

Any ideas?

Thanks,

Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBkX/UACgkQoYgNqgF2egrt9QCeNoWW6n9/zMFYSaLnmHZfrPst
zNoAn32wOpWniIEkBaxNPIlF5wBWMy34
=Ere3
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bastien  
View profile  
 More options Sep 27 2012, 7:02 pm
Newsgroups: gnu.emacs.help
From: Bastien <b...@altern.org>
Date: Fri, 28 Sep 2012 01:02:55 +0200
Local: Thurs, Sep 27 2012 7:02 pm
Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1
Hi Rainer,

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)

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.

--
 Bastien


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joost Kremers  
View profile  
 More options Sep 27 2012, 8:02 pm
Newsgroups: gnu.emacs.help
From: Joost Kremers <joostkrem...@yahoo.com>
Date: 28 Sep 2012 00:02:30 GMT
Local: Thurs, Sep 27 2012 8:02 pm
Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1

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.

--
Joost Kremers                                      joostkrem...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joost Kremers  
View profile  
 More options Sep 27 2012, 8:14 pm
Newsgroups: gnu.emacs.help
From: Joost Kremers <joostkrem...@yahoo.com>
Date: 28 Sep 2012 00:14:07 GMT
Local: Thurs, Sep 27 2012 8:14 pm
Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1

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                                      joostkrem...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rainer M Krug  
View profile  
 More options Sep 28 2012, 3:36 am
Newsgroups: gnu.emacs.help
From: Rainer M Krug <R.M.K...@gmail.com>
Date: Fri, 28 Sep 2012 09:35:59 +0200
Local: Fri, Sep 28 2012 3:35 am
Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28/09/12 01:02, Bastien wrote:

> Hi Rainer,

> 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)

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).

But what do you mean with package-* options?

I only set

(setq package-archives '(
                           ("ELPA" . "http://tromey.com/elpa/")
                           ("gnu" . "http://elpa.gnu.org/packages/")
                           ("suco" . "http://joseito.republika.pl/sunrise-commander/")
                           ("marmalade" . "http://marmalade-repo.org/packages/"))

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/

iEYEARECAAYFAlBlU18ACgkQoYgNqgF2egptHgCfc7K66Y8EPXf9nvP1LPeqPpVG
AqkAnj1QJObLObRQyrHm0D5M3aVnqaeT
=Wdhu
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rainer M Krug  
View profile  
 More options Sep 28 2012, 3:40 am
Newsgroups: gnu.emacs.help
From: Rainer M Krug <R.M.K...@gmail.com>
Date: Fri, 28 Sep 2012 09:38:29 +0200
Local: Fri, Sep 28 2012 3:38 am
Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28/09/12 02:02, Joost Kremers wrote:

> 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/

iEYEARECAAYFAlBlU/QACgkQoYgNqgF2egryZQCeOS/qQf7ZCbunzF9kXnoHQhfV
MlYAn0eLs0dUb/7m18nAlbjClaz9vzLw
=6TLp
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bastien  
View profile  
 More options Sep 28 2012, 3:40 am
Newsgroups: gnu.emacs.help
From: Bastien <b...@altern.org>
Date: Fri, 28 Sep 2012 09:40:18 +0200
Local: Fri, Sep 28 2012 3:40 am
Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1
Hi Rainer,

Rainer M Krug <R.M.K...@gmail.com> writes:

> But what do you mean with package-* options?

I mean `package-load-list' in particular.  

This defaults to '(all), which loads all packages that you downloaded
through M-x list-packages RET but you may want to load only some.

> I only set

> (setq package-archives '(
>                            ("ELPA" . "http://tromey.com/elpa/")
>                            ("gnu" . "http://elpa.gnu.org/packages/")
>                            ("suco" . "http://joseito.republika.pl/sunrise-commander/")
>                            ("marmalade" . "http://marmalade-repo.org/packages/"))

> 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.

--
 Bastien


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rainer M Krug  
View profile  
 More options Sep 28 2012, 4:03 am
Newsgroups: gnu.emacs.help
From: Rainer M Krug <R.M.K...@gmail.com>
Date: Fri, 28 Sep 2012 10:03:21 +0200
Local: Fri, Sep 28 2012 4:03 am
Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1
-----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)

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-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rainer M Krug  
View profile  
 More options Sep 28 2012, 4:11 am
Newsgroups: gnu.emacs.help
From: Rainer M Krug <R.M.K...@gmail.com>
Date: Fri, 28 Sep 2012 10:11:33 +0200
Local: Fri, Sep 28 2012 4:11 am
Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28/09/12 09:40, Bastien wrote:

> Hi Rainer,

> Rainer M Krug <R.M.K...@gmail.com> writes:

>> But what do you mean with package-* options?

> I mean `package-load-list' in particular.

> This defaults to '(all), which loads all packages that you downloaded through M-x list-packages
> RET but you may want to load only some.

OK - was wondering already if it is loading all packages, which might be delaying the start and
using more memory.

>> I only set

>> (setq package-archives '( ("ELPA" . "http://tromey.com/elpa/") ("gnu" .
>> "http://elpa.gnu.org/packages/") ("suco" . "http://joseito.republika.pl/sunrise-commander/")
>> ("marmalade" . "http://marmalade-repo.org/packages/"))

>> 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/

iEYEARECAAYFAlBlW7QACgkQoYgNqgF2egrPMgCfdtFuQUK4unM1Dv9khaq0lysZ
aiYAnRYNMEz9FE66j/6XeKRVCCf1z4Oa
=lqjb
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bastien  
View profile  
 More options Sep 28 2012, 4:25 am
Newsgroups: gnu.emacs.help
From: Bastien <b...@altern.org>
Date: Fri, 28 Sep 2012 10:25:08 +0200
Local: Fri, Sep 28 2012 4:25 am
Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1
Rainer M Krug <R.M.K...@gmail.com> writes:

> OK - but could I should be able to put these statements as first
> commands into my emacs.org - correct?

AFAIU yes.

--
 Bastien


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rainer M Krug  
View profile  
 More options Sep 28 2012, 4:30 am
Newsgroups: gnu.emacs.help
From: Rainer M Krug <R.M.K...@gmail.com>
Date: Fri, 28 Sep 2012 10:29:48 +0200
Local: Fri, Sep 28 2012 4:29 am
Subject: Re: Activating tabbar after installation via elpa on emacs 24.2.1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28/09/12 10:25, Bastien wrote:

> Rainer M Krug <R.M.K...@gmail.com> writes:

>> OK - but could I should be able to put these statements as first commands into my emacs.org -
>> correct?

> AFAIU yes.

Great - thanks a lot

Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBlX/wACgkQoYgNqgF2egp7hQCgg6f++Q6IiqaCLFJ6F1k7vUBL
dFcAnA9s7jV3VhhH/w1pF9boVax/rcpM
=bxDE
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Drew Adams  
View profile  
 More options Sep 28 2012, 11:09 am
Newsgroups: gnu.emacs.help
From: "Drew Adams" <drew.ad...@oracle.com>
Date: Fri, 28 Sep 2012 08:09:39 -0700
Local: Fri, Sep 28 2012 11:09 am
Subject: RE: Activating tabbar after installation via elpa on emacs 24.2.1

> 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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »