[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add tintin.
From: |
Marius Bakke |
Subject: |
Re: [PATCH] Add tintin. |
Date: |
Fri, 19 Aug 2016 19:46:01 +0100 |
David Craven <address@hidden> 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 '(("address@hidden" . "work/Sent")
("address@hidden" . "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
- Re: [PATCH] Add tintin., (continued)
- Re: [PATCH] Add tintin., ng0, 2016/08/08
- Re: [PATCH] Add tintin., ng0, 2016/08/19
- Re: [PATCH] Add tintin., David Craven, 2016/08/19
- Re: [PATCH] Add tintin., ng0, 2016/08/19
- Re: [PATCH] Add tintin., David Craven, 2016/08/19
- Re: [PATCH] Add tintin., ng0, 2016/08/19
- Re: [PATCH] Add tintin., David Craven, 2016/08/19
- Re: [PATCH] Add tintin., Marius Bakke, 2016/08/19
- Re: [PATCH] Add tintin., David Craven, 2016/08/19
- Re: [PATCH] Add tintin., David Craven, 2016/08/19
- Re: [PATCH] Add tintin.,
Marius Bakke <=
- Re: [PATCH] Add tintin., Leo Famulari, 2016/08/19
- Re: [PATCH] Add tintin., Alex Vong, 2016/08/20
- Re: [PATCH] Add tintin., David Craven, 2016/08/20
- Re: [PATCH] Add tintin., David Craven, 2016/08/23
- Re: [PATCH] Add tintin., ng0, 2016/08/23
- Re: [PATCH] Add tintin., David Craven, 2016/08/23
- Question about emacs and guix (was: Re: [PATCH] Add tintin), Alex Kost, 2016/08/24
Re: [PATCH] Add tintin., Leo Famulari, 2016/08/19