diff options
author | Amin Bandali <amin@aminb.org> | 2016-12-14 22:16:35 -0500 |
---|---|---|
committer | Amin Bandali <amin@aminb.org> | 2016-12-14 22:16:35 -0500 |
commit | 0b0b4e44187b16c2650ab5655d1ce9f9e2714e9f (patch) | |
tree | 34d5427f1afc98064db835422b1a23657dd6da81 /spacemacs/.emacs.d/private/aminb | |
parent | 871d5d225f24306ef0543f7e003205b6213a184f (diff) | |
download | configs-0b0b4e44187b16c2650ab5655d1ce9f9e2714e9f.tar.gz configs-0b0b4e44187b16c2650ab5655d1ce9f9e2714e9f.tar.xz configs-0b0b4e44187b16c2650ab5655d1ce9f9e2714e9f.zip |
Bind shortcut for counsel-esh-history, also prefer text over html
Diffstat (limited to 'spacemacs/.emacs.d/private/aminb')
-rw-r--r-- | spacemacs/.emacs.d/private/aminb/packages.el | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/spacemacs/.emacs.d/private/aminb/packages.el b/spacemacs/.emacs.d/private/aminb/packages.el index 997de0b..b59d7b5 100644 --- a/spacemacs/.emacs.d/private/aminb/packages.el +++ b/spacemacs/.emacs.d/private/aminb/packages.el @@ -17,17 +17,29 @@ ;;; Code: (defconst aminb-packages - '(creamsody-theme + '(counsel + creamsody-theme crux ;; mu4e has to be installed manually, ;; and make sure it's in load-path (mu4e :location site) - (mu4e-contrib :location site) smtpmail writeroom-mode znc) "The list of Lisp packages required by the aminb layer.") +(defun aminb/post-init-counsel () + (use-package counsel + :defer t + :config + (progn + (spacemacs/set-leader-keys-for-major-mode 'eshell-mode + "," 'counsel-esh-history) + (add-hook 'eshell-mode-hook + '(lambda () (define-key eshell-mode-map + (kbd "M-l") 'counsel-esh-history))) + ))) + (defun aminb/init-creamsody-theme ()) (defun aminb/init-crux () @@ -164,6 +176,7 @@ erc-modified-channels-alist. Should be executed on window change." mu4e-trash-folder "/amin/Trash" user-full-name "Amin Bandali" user-mail-address "amin@aminb.org" + mu4e-view-html-plaintext-ratio-heuristic most-positive-fixnum mu4e-context-policy 'pick-first mu4e-contexts (list (make-mu4e-context @@ -218,7 +231,10 @@ erc-modified-channels-alist. Should be executed on window change." (use-package gnus-dired ;; A special version of the gnus-dired-mail-buffers function - ;; that understands mu4e buffers as well + ;; that understands mu4e buffers as well. + ;; Usage: mark the file(s) in dired and press C-c RET C-a, + ;; then will be asked whether to attach them to an existing + ;; message, or create a new one. :defer t :config (progn @@ -248,14 +264,6 @@ erc-modified-channels-alist. Should be executed on window change." "am" 'mu4e) ) -(defun aminb/init-mu4e-contrib () - (use-package mu4e-contrib - :defer t - :config - (setq mu4e-html2text-command 'mu4e-shr2text - mu4e-view-html-plaintext-ratio-heuristic 10 - mu4e-view-prefer-html t))) - (defun aminb/init-smtpmail () (use-package smtpmail :defer t |