David Craven <da...@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.ba...@warwick.ac.uk" . "work/Sent") ("mba...@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