unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: David Craven <david@craven.ch>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] Add tintin.
Date: Fri, 19 Aug 2016 19:46:01 +0100	[thread overview]
Message-ID: <87tweglhqu.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <CAL1_imkyNCK+sKz6PtXoFqBWkqNEpW1ZwaJGgdHsNkYKGTgVpQ@mail.gmail.com>

David Craven <david@craven.ch> writes:

>> Another emacs/notmuch user checking in. I was in the same boat as you
>> until trying out spacemacs ~two years ago:
>>
>> https://github.com/syl20bnr/spacemacs
>>
>> Give it a go, if you haven't already :)
>
> @marius:
> Did you get the guix plugin working? Does it need anything spacemacs
> specific other than adding the snippet from the manual to .spacemacs?
>
> (let ((dir "/path/to/your-guix-git-tree/emacs"))
>   (add-to-list 'load-path dir)
>   (setq guix-load-path dir))
> (require 'guix-autoloads nil t)

The guix plugin worked out of the box on GuixSD. I have not set it up on
my main workstation, as I mainly work from a terminal, and it did not
integrate well with Evil.

> Are you using a spacemacs layer for notmuch? There isn't an official
> one available...

Yes, I have a layer called "mail". Here is config.el, using two mail
accounts (this one and work). Don't ask what all the options mean...

--8<---------------cut here---------------start------------->8---
(setq notmuch-crypto-process-mime t
      notmuch-search-oldest-first nil
      notmuch-folders '(("inbox" . "tag:inbox")
                        ("work" . "tag:work")
                        ("guix" . "tag:guix")
                        ; ..add your most-used tags here..
                        ))

(setq mail-specify-envelope-from t
      message-sendmail-envelope-from 'header
      mail-envelope-from 'header
      ;; Tell notmuch where to place sent email based on sender.
      notmuch-fcc-dirs '(("m.bakke@warwick.ac.uk" . "work/Sent")
                        ("mbakke@fastmail.com" . "fastmail/Sent"))
      sendmail-program "/home/marius/.nix-profile/bin/msmtp"
      send-mail-function 'message-send-mail-with-sendmail
      message-send-mail-function 'message-send-mail-with-sendmail
      message-directory "~/Mail/drafts"
      message-kill-buffer-on-exit t)

;; Ask which signing key to use.
(setq mm-sign-option 'guided)
--8<---------------cut here---------------end--------------->8---

..and packages.el (not sure if all of this is required):

--8<---------------cut here---------------start------------->8---
(setq mail-packages
  '(notmuch
    peg
    nm))

(setq mail-excluded-packages '())

(defun mail/init-nm()
  (require 'nm))

(defun mail/init-nmaddr()
  (require 'nm-company))

(when (configuration-layer/layer-usedp 'auto-completion)

  ;; Hook company to notmuch
  (defun mail/post-init-company ()
    (spacemacs|add-company-hook notmuch))

  ;; Add the backend to the major-mode specific backend list
  (defun mail/init-nm-company ()
    (use-package nm-company
      :if (configuration-layer/package-usedp 'company)
      :defer t
      :init (push 'nm-company company-backends-notmuch))))
--8<---------------cut here---------------end--------------->8---

I also have this in keybindings.el, but not sure if that's required
either (company-mode has gotten a lot more integrated with spacemacs
since I configured this):

(local-set-key [tab] 'company-complete)

Hope this helps!
Marius

  reply	other threads:[~2016-08-19 18:46 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-08 20:00 [PATCH] Add tintin ng0
2016-08-08 20:12 ` ng0
2016-08-08 21:13 ` ng0
2016-08-08 21:21 ` ng0
2016-08-19  9:01   ` ng0
2016-08-19  9:21     ` David Craven
2016-08-19  9:38       ` ng0
2016-08-19  9:48         ` David Craven
2016-08-19 10:30           ` ng0
2016-08-19 11:25             ` David Craven
2016-08-19 11:50           ` Marius Bakke
2016-08-19 12:38             ` David Craven
2016-08-19 17:59               ` David Craven
2016-08-19 18:46                 ` Marius Bakke [this message]
2016-08-19 19:15           ` Leo Famulari
2016-08-20 16:38           ` Alex Vong
2016-08-20 17:18             ` David Craven
2016-08-23 17:05               ` David Craven
2016-08-23 22:31                 ` ng0
2016-08-23 23:00                   ` David Craven
2016-08-24  8:35                 ` Question about emacs and guix (was: Re: [PATCH] Add tintin) Alex Kost
2016-08-19 19:32   ` [PATCH] Add tintin Leo Famulari
2016-08-19 20:40     ` ng0

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://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tweglhqu.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me \
    --to=mbakke@fastmail.com \
    --cc=david@craven.ch \
    --cc=guix-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.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).