From a5041f006d6e02f0be70dbffc1fd2d85196a57e4 Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Wed, 18 Mar 2015 16:42:24 -0500 Subject: [PATCH] More emacs, spacemacs, and mu4e stuff --- spacemacs | 2 +- spacemacs_private/mu4e/config.el | 20 ++++++++++++++++ spacemacs_private/mu4e/extensions.el | 36 ++++++++++++++++++++++++++++ spacemacs_private/mu4e/packages.el | 31 ++++++++++++++++++++++++ symlinks.sh | 1 - 5 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 spacemacs_private/mu4e/config.el create mode 100644 spacemacs_private/mu4e/extensions.el create mode 100644 spacemacs_private/mu4e/packages.el diff --git a/spacemacs b/spacemacs index 9108f62..f8a100b 100644 --- a/spacemacs +++ b/spacemacs @@ -12,7 +12,7 @@ dotspacemacs-configuration-layer-path '() ;; List of configuration layers to load. If it is the symbol `all' instead ;; of a list then all discovered layers will be installed. - dotspacemacs-configuration-layers '(perforce git c-c++ haskell html javascript php markdown extra-langs company-mode (colors :variables colors-enable-rainbow-identifiers t) restclient evil-snipe) + dotspacemacs-configuration-layers '(perforce git c-c++ haskell html javascript php markdown extra-langs company-mode (colors :variables colors-enable-rainbow-identifiers t) restclient evil-snipe mu4e) ;; A list of packages and/or extensions that will not be install and loaded. dotspacemacs-excluded-packages '(evil-escape) ;; If non-nil spacemacs will delete any orphan packages, i.e. packages that diff --git a/spacemacs_private/mu4e/config.el b/spacemacs_private/mu4e/config.el new file mode 100644 index 0000000..040cf30 --- /dev/null +++ b/spacemacs_private/mu4e/config.el @@ -0,0 +1,20 @@ +(eval-after-load 'mu4e + '(progn + (setq + mu4e-maildir "~/Mail" ;; top-level Maildir + mu4e-sent-folder "/Gmail/[Gmail].Sent Mail" ;; folder for sent messages + mu4e-drafts-folder "/Gmail/[Gmail].Drafts" ;; unfinished messages + mu4e-trash-folder "/Gmail/[Gmail].Trash" ;; trashed messages + mu4e-refile-folder "/Gmail/[Gmail].Archive" ;; saved messages + mu4e-get-mail-command "offlineimap -q" + mu4e-update-interval 120 + ) + + (setq mu4e-attachment-dir "~/Downloads") + + ;; enable inline images + (setq mu4e-view-show-images t) + + ;; use imagemagick, if available + (when (fboundp 'imagemagick-register-types) + (imagemagick-register-types)))) diff --git a/spacemacs_private/mu4e/extensions.el b/spacemacs_private/mu4e/extensions.el new file mode 100644 index 0000000..290c0ef --- /dev/null +++ b/spacemacs_private/mu4e/extensions.el @@ -0,0 +1,36 @@ +;;; extensions.el --- mu4e Layer extensions File for Spacemacs +;; +;; Copyright (c) 2012-2014 Sylvain Benner +;; Copyright (c) 2014-2015 Sylvain Benner & Contributors +;; +;; Author: Sylvain Benner +;; URL: https://github.com/syl20bnr/spacemacs +;; +;; This file is not part of GNU Emacs. +;; +;;; License: GPLv3 + +(defvar mu4e-pre-extensions + '( + ;; pre extension mu4es go here + ) + "List of all extensions to load before the packages.") + +(defvar mu4e-post-extensions + '( + ;; post extension mu4es go here + mu4e + ) + "List of all extensions to load after the packages.") + +;; For each extension, define a function mu4e/init- +;; +(defun mu4e/init-mu4e () + "Initialize my extension" + (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e") + (require 'mu4e) + ) +;; +;; Often the body of an initialize function uses `use-package' +;; For more info on `use-package', see readme: +;; https://github.com/jwiegley/use-package diff --git a/spacemacs_private/mu4e/packages.el b/spacemacs_private/mu4e/packages.el new file mode 100644 index 0000000..52e536c --- /dev/null +++ b/spacemacs_private/mu4e/packages.el @@ -0,0 +1,31 @@ +;;; packages.el --- mu4e Layer packages File for Spacemacs +;; +;; Copyright (c) 2012-2014 Sylvain Benner +;; Copyright (c) 2014-2015 Sylvain Benner & Contributors +;; +;; Author: Sylvain Benner +;; URL: https://github.com/syl20bnr/spacemacs +;; +;; This file is not part of GNU Emacs. +;; +;;; License: GPLv3 + +(defvar mu4e-packages + '( + ;; package mu4es go here + ) + "List of all packages to install and/or initialize. Built-in packages +which require an initialization must be listed explicitly in the list.") + +(defvar mu4e-excluded-packages '() + "List of packages to exclude.") + +;; For each package, define a function mu4e/init- +;; +;; (defun mu4e/init-my-package () +;; "Initialize my package" +;; ) +;; +;; Often the body of an initialize function uses `use-package' +;; For more info on `use-package', see readme: +;; https://github.com/jwiegley/use-package diff --git a/symlinks.sh b/symlinks.sh index 876470d..d15dd11 100644 --- a/symlinks.sh +++ b/symlinks.sh @@ -14,7 +14,6 @@ rm -rf ~/.config/khal; mkdir -p ~/.config/khal; ln -s ~/dotfiles/khal.conf ~/.co rm -rf ~/.vdirsyncer; mkdir ~/.vdirsyncer; ln -s ~/dotfiles/vdirsyncer/config ~/.vdirsyncer/config rm ~/.zshrc; ln -s ~/dotfiles/zshrc ~/.zshrc rm ~/.jrnl_config; ln -s ~/dotfiles/jrnl_config ~/.jrnl_config -rm ~/.emacs.d; ln -s ~/dotfiles/emacs.d ~/.emacs.d rm ~/.gnupg/gpg-agent.conf; ln -s ~/dotfiles/gpg-agent.conf ~/.gnupg/gpg-agent.conf # Mail stuff