e0b751bee3
Replace push with add-to-list in layer init functions and related code. Modify spacemacs|add-toggle to check for and update an existing toggle in spacemacs-toggles and only create a new toggle if none already existed. Replace a conditional push onto erc-packages with use of :toggle. When initializing which-key, set which-key-replacement-alist to its default or customized setting before adding all the Spacemacs replacements. We want to keep the stock replacements but avoid adding duplicates of the Spacemacs replacements. Replace the emacs-lisp-mode-hook lambda with a named function to avoid adding duplicate hooks (which can add duplicate definitions of the evil-surround pair).
39 lines
1.2 KiB
EmacsLisp
39 lines
1.2 KiB
EmacsLisp
;;; config.el --- mu4e Layer configuration File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
(defvar mu4e-installation-path nil
|
|
"Installation path for mu4e.")
|
|
|
|
(defvar mu4e-spacemacs-layout-name "@Mu4e"
|
|
"Name used in the setup for `spacemacs-layouts' micro-state")
|
|
|
|
(defvar mu4e-spacemacs-layout-binding "m"
|
|
"Binding used in the setup for `spacemacs-layouts' micro-state")
|
|
|
|
(defvar mu4e-enable-async-operations nil
|
|
"Prefer async operations when sending emails.")
|
|
|
|
(defvar mu4e-enable-notifications nil
|
|
"If non-nil, enable desktop notifications for unread emails.")
|
|
|
|
(defvar mu4e-enable-mode-line nil
|
|
"If non-nil, enable display of unread emails in mode-line.")
|
|
|
|
(defvar mu4e-use-maildirs-extension nil
|
|
"Use mu4e-maildirs-extension package if value is non-nil.")
|
|
|
|
(defvar mu4e-modes
|
|
'(mu4e-main-mode mu4e-headers-mode mu4e-view-mode mu4e-compose-mode)
|
|
"Modes that are associated with mu4e buffers.")
|
|
|
|
(when mu4e-installation-path
|
|
(add-to-list 'load-path mu4e-installation-path))
|