From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH] Add tintin. Date: Fri, 19 Aug 2016 19:46:01 +0100 Message-ID: <87tweglhqu.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> References: <87r39z81zo.fsf@we.make.ritual.n0.is> <8760rbot2y.fsf@we.make.ritual.n0.is> <877fbdnne4.fsf@we.make.ritual.n0.is> <87y43tm73e.fsf@we.make.ritual.n0.is> <87vayxx9iy.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baoo7-0000Wz-IC for guix-devel@gnu.org; Fri, 19 Aug 2016 14:46:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1baoo3-0006AN-B9 for guix-devel@gnu.org; Fri, 19 Aug 2016 14:46:18 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:48786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baoo0-00066c-Su for guix-devel@gnu.org; Fri, 19 Aug 2016 14:46:15 -0400 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: David Craven Cc: guix-devel David Craven 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