unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* emacs integration
@ 2014-05-22 11:07 Gauthier Östervall
  2014-05-23  7:20 ` David Edmondson
  0 siblings, 1 reply; 4+ messages in thread
From: Gauthier Östervall @ 2014-05-22 11:07 UTC (permalink / raw)
  To: notmuch

I just installed notmuch and could index from the command line.
I read from the Setup section of the "emacs tips" page (
notmuch@notmuchmail.org ) that integrating to emacs is as simple as
(require 'notmuch).

1. First, I had a hard time to get the el files at all. I finally got
them from github.com/chrisdone/notmuch.git.
Is this ok? Where should I get them otherwise?

2. I put the git repot in ~/.emacs.d/includes/notmuch, and added that
to my load-path:
(add-to-list 'load-path "~/.emacs.d/includes/notmuch")
before the require line.
Require seemed to work (besides this error message: "Symbol's value as
variable is void: zenburn-blue")
Anything wrong here?

3. Opening notmuch.el revealed that notmuch had to be built, with
$ sudo make install-emacs.
Unfortunately this yields:
gauthier:~/.emacs.d/includes/notmuch $ sudo make install-emacs
make -C .. install-emacs
make[1]: Entering directory `/home/gauthier/.emacs.d/includes'
make[1]: *** No rule to make target `install-emacs'.  Stop.
make[1]: Leaving directory `/home/gauthier/.emacs.d/includes'
make: *** [install-emacs] Error 2

I am not sure why the makefile has "-C ..", but I am not either sure
how to solve it.
Where do I go from there?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs integration
  2014-05-22 11:07 emacs integration Gauthier Östervall
@ 2014-05-23  7:20 ` David Edmondson
  2014-05-23 14:02   ` Gauthier Östervall
  0 siblings, 1 reply; 4+ messages in thread
From: David Edmondson @ 2014-05-23  7:20 UTC (permalink / raw)
  To: Gauthier Östervall, notmuch

[-- Attachment #1: Type: text/plain, Size: 1758 bytes --]

On Thu, May 22 2014, Gauthier Östervall wrote:
> I just installed notmuch and could index from the command line.
> I read from the Setup section of the "emacs tips" page (
> notmuch@notmuchmail.org ) that integrating to emacs is as simple as
> (require 'notmuch).
>
> 1. First, I had a hard time to get the el files at all. I finally got
> them from github.comb/chrisdone/notmuch.git.
> Is this ok? Where should I get them otherwise?

http://notmuchmail.org lists both http://notmuchmail.org/releases/ and
git://notmuchmail.org/git/notmuch as sources of notmuch.

The emacs UI is in emacs/ when you've grabbed the source.

> 2. I put the git repot in ~/.emacs.d/includes/notmuch, and added that
> to my load-path:
> (add-to-list 'load-path "~/.emacs.d/includes/notmuch")
> before the require line.
> Require seemed to work (besides this error message: "Symbol's value as
> variable is void: zenburn-blue")
> Anything wrong here?

This is a local change in the repository that you cloned - it's not an
official mirror.

> 3. Opening notmuch.el revealed that notmuch had to be built, with
> $ sudo make install-emacs.
> Unfortunately this yields:
> gauthier:~/.emacs.d/includes/notmuch $ sudo make install-emacs
> make -C .. install-emacs
> make[1]: Entering directory `/home/gauthier/.emacs.d/includes'
> make[1]: *** No rule to make target `install-emacs'.  Stop.
> make[1]: Leaving directory `/home/gauthier/.emacs.d/includes'
> make: *** [install-emacs] Error 2
>
> I am not sure why the makefile has "-C ..", but I am not either sure
> how to solve it.
> Where do I go from there?

The repository that you cloned is a modified, partial copy of the
original source. It's better to go to the original (see above).

[-- Attachment #2: Type: application/pgp-signature, Size: 310 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs integration
  2014-05-23  7:20 ` David Edmondson
@ 2014-05-23 14:02   ` Gauthier Östervall
  2014-05-24 17:43     ` Suvayu Ali
  0 siblings, 1 reply; 4+ messages in thread
From: Gauthier Östervall @ 2014-05-23 14:02 UTC (permalink / raw)
  To: David Edmondson; +Cc: notmuch

On Fri, May 23, 2014 at 9:20 AM, David Edmondson <dme@dme.org> wrote:
> On Thu, May 22 2014, Gauthier Östervall wrote:
>> 1. First, I had a hard time to get the el files at all. I finally got
>> them from github.comb/chrisdone/notmuch.git.
>> Is this ok? Where should I get them otherwise?
>
> http://notmuchmail.org lists both http://notmuchmail.org/releases/ and
> git://notmuchmail.org/git/notmuch as sources of notmuch.
>
> The emacs UI is in emacs/ when you've grabbed the source.

I see, thank you. I am actually not interested in the source itself
for now, I only attempted to get the emacs integration to work.
I actually got notmuch via apt-get, and if I try to apt-get install
notmuch-emacs, it says I have it already.
So it seems I have notmuch-emacs installed, what I don't know is where
to point emacs to for it to find this installation.

Now emacs seems to have found them somehow. I had a system restart in
between, maybe that's what fixed it.
After examining my load-path, I saw that
/usr/share/emacs24/site-lisp/notmuch was added there.
Who modified load-path, and how? I could see no environment variable
about notmuch, maybe everything under site-lisp/ is added to load-path
at each emacs start?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs integration
  2014-05-23 14:02   ` Gauthier Östervall
@ 2014-05-24 17:43     ` Suvayu Ali
  0 siblings, 0 replies; 4+ messages in thread
From: Suvayu Ali @ 2014-05-24 17:43 UTC (permalink / raw)
  To: notmuch

On Fri, May 23, 2014 at 04:02:16PM +0200, Gauthier Östervall wrote:
> 
> I see, thank you. I am actually not interested in the source itself
> for now, I only attempted to get the emacs integration to work.
> I actually got notmuch via apt-get, and if I try to apt-get install
> notmuch-emacs, it says I have it already.
> So it seems I have notmuch-emacs installed, what I don't know is where
> to point emacs to for it to find this installation.
> 
> Now emacs seems to have found them somehow. I had a system restart in
> between, maybe that's what fixed it.
> After examining my load-path, I saw that
> /usr/share/emacs24/site-lisp/notmuch was added there.
> Who modified load-path, and how? I could see no environment variable
> about notmuch, maybe everything under site-lisp/ is added to load-path
> at each emacs start?

This is a standard way to deal with external packages in emacs.  The
setup stuff goes in the site start file.  The exact location is
distribution dependent, but generally it is something like
/usr/share/emacs/site-lisp/.

You should not worry about these details if you are using notmuch-emacs
as provided by your distribution.  Just put your personal configurations
in your ~/.emacs or better yet, use customize to set and save them.
Then `M-x notmuch RET' should get you started.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-24 17:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-22 11:07 emacs integration Gauthier Östervall
2014-05-23  7:20 ` David Edmondson
2014-05-23 14:02   ` Gauthier Östervall
2014-05-24 17:43     ` Suvayu Ali

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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