summaryrefslogtreecommitdiffstats
path: root/spacemacs
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2016-12-14 22:16:35 -0500
committerAmin Bandali <amin@aminb.org>2016-12-14 22:16:35 -0500
commit0b0b4e44187b16c2650ab5655d1ce9f9e2714e9f (patch)
tree34d5427f1afc98064db835422b1a23657dd6da81 /spacemacs
parent871d5d225f24306ef0543f7e003205b6213a184f (diff)
downloadconfigs-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')
-rw-r--r--spacemacs/.emacs.d/private/aminb/packages.el30
-rw-r--r--spacemacs/.spacemacs6
2 files changed, 22 insertions, 14 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
diff --git a/spacemacs/.spacemacs b/spacemacs/.spacemacs
index 3a27d81..09d1c9c 100644
--- a/spacemacs/.spacemacs
+++ b/spacemacs/.spacemacs
@@ -59,7 +59,7 @@ values."
syntax-checking
themes-megapack
;; version-control
- ;; yaml
+ yaml
)
;; List of additional packages that will be installed without being
;; wrapped in a layer. If you need some configuration for these
@@ -161,7 +161,7 @@ values."
dotspacemacs-ex-command-key ":"
;; The leader key accessible in `emacs state' and `insert state'
;; (default "M-m")
- dotspacemacs-emacs-leader-key "S-SPC"
+ dotspacemacs-emacs-leader-key "M-m"
;; Major mode leader key is a shortcut key which is the equivalent of
;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
dotspacemacs-major-mode-leader-key ","
@@ -373,7 +373,7 @@ This function is called at the very end of Spacemacs initialization."
;; If there is more than one, they won't work right.
'(package-selected-packages
(quote
- (zonokai-theme znc zenburn-theme zen-and-art-theme xterm-color ws-butler writeroom-mode window-numbering which-key wgrep web-mode volatile-highlights vi-tilde-fringe uuidgen use-package underwater-theme ujelly-theme twilight-theme twilight-bright-theme twilight-anti-bright-theme tronesque-theme toxi-theme toc-org tao-theme tangotango-theme tango-plus-theme tango-2-theme tagedit sunny-day-theme sublime-themes subatomic256-theme subatomic-theme spacemacs-theme spaceline spacegray-theme sourcerer-theme soothe-theme solarized-theme soft-stone-theme soft-morning-theme soft-charcoal-theme smyx-theme smex smeargle slim-mode shell-pop seti-theme scss-mode sass-mode reverse-theme restart-emacs request rainbow-delimiters railscasts-theme quelpa purple-haze-theme pug-mode professional-theme popwin planet-theme phoenix-dark-pink-theme phoenix-dark-mono-theme persp-mode pcre2el pastels-on-dark-theme paradox orgit organic-green-theme org-ref org-projectile org-present org-pomodoro org-plus-contrib org-download org-bullets open-junk-file omtose-phellack-theme oldlace-theme occidental-theme obsidian-theme noctilux-theme niflheim-theme neotree naquadah-theme mwim mustang-theme multi-term mu4e-maildirs-extension mu4e-alert move-text monokai-theme monochrome-theme molokai-theme moe-theme mmm-mode minimal-theme material-theme markdown-toc majapahit-theme magit-gitflow macrostep lush-theme lorem-ipsum linum-relative link-hint light-soap-theme less-css-mode jbeans-theme jazz-theme ivy-purpose ivy-hydra ir-black-theme intero insert-shebang inkpot-theme info+ indent-guide ido-vertical-mode hungry-delete htmlize hlint-refactor hl-todo hindent highlight-parentheses highlight-numbers highlight-indentation hide-comnt heroku-theme hemisu-theme help-fns+ helm-make hc-zenburn-theme haskell-snippets gruvbox-theme gruber-darker-theme grandshell-theme gotham-theme google-translate golden-ratio gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link gh-md gandalf-theme flyspell-correct-ivy flycheck-pos-tip flycheck-haskell flx-ido flatui-theme flatland-theme fish-mode firebelly-theme fill-column-indicator farmhouse-theme fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-ediff evil-args evil-anzu eval-sexp-fu espresso-theme eshell-z eshell-prompt-extras esh-help erc-yt erc-view-log erc-social-graph erc-image erc-hl-nicks emmet-mode elisp-slime-nav dumb-jump dracula-theme django-theme disaster define-word darktooth-theme darkokai-theme darkmine-theme darkburn-theme dakrone-theme cyberpunk-theme crux counsel-projectile company-web company-statistics company-shell company-ghci company-ghc company-cabal company-c-headers company-auctex column-enforce-mode color-theme-sanityinc-tomorrow color-theme-sanityinc-solarized cmm-mode cmake-mode clues-theme clean-aindent-mode clang-format cherry-blossom-theme busybee-theme bubbleberry-theme birds-of-paradise-plus-theme badwolf-theme auto-yasnippet auto-highlight-symbol auto-dictionary auto-compile auctex-latexmk apropospriate-theme anti-zenburn-theme ample-zen-theme ample-theme alect-themes aggressive-indent afternoon-theme adaptive-wrap ace-window ace-link ac-ispell))))
+ (yaml-mode zenburn-theme tao-theme smeargle ivy-hydra info+ htmlize counsel-projectile counsel swiper company-statistics clues-theme ample-theme yasnippet haskell-mode company projectile ivy helm helm-core zonokai-theme znc zen-and-art-theme xterm-color ws-butler writeroom-mode window-numbering which-key wgrep web-mode volatile-highlights vi-tilde-fringe uuidgen use-package underwater-theme ujelly-theme twilight-theme twilight-bright-theme twilight-anti-bright-theme tronesque-theme toxi-theme toc-org tangotango-theme tango-plus-theme tango-2-theme tagedit sunny-day-theme sublime-themes subatomic256-theme subatomic-theme spacemacs-theme spaceline spacegray-theme sourcerer-theme soothe-theme solarized-theme soft-stone-theme soft-morning-theme soft-charcoal-theme smyx-theme smex slim-mode shell-pop seti-theme scss-mode sass-mode reverse-theme restart-emacs request rainbow-delimiters railscasts-theme quelpa purple-haze-theme pug-mode professional-theme popwin planet-theme phoenix-dark-pink-theme phoenix-dark-mono-theme persp-mode pcre2el pastels-on-dark-theme paradox orgit organic-green-theme org-ref org-projectile org-present org-pomodoro org-plus-contrib org-download org-bullets open-junk-file omtose-phellack-theme oldlace-theme occidental-theme obsidian-theme noctilux-theme niflheim-theme neotree naquadah-theme mwim mustang-theme multi-term mu4e-maildirs-extension mu4e-alert move-text monokai-theme monochrome-theme molokai-theme moe-theme mmm-mode minimal-theme material-theme markdown-toc majapahit-theme magit-gitflow macrostep lush-theme lorem-ipsum linum-relative link-hint light-soap-theme less-css-mode jbeans-theme jazz-theme ivy-purpose ir-black-theme intero insert-shebang inkpot-theme indent-guide ido-vertical-mode hungry-delete hlint-refactor hl-todo hindent highlight-parentheses highlight-numbers highlight-indentation hide-comnt heroku-theme hemisu-theme help-fns+ helm-make hc-zenburn-theme haskell-snippets gruvbox-theme gruber-darker-theme grandshell-theme gotham-theme google-translate golden-ratio gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link gh-md gandalf-theme flyspell-correct-ivy flycheck-pos-tip flycheck-haskell flx-ido flatui-theme flatland-theme fish-mode firebelly-theme fill-column-indicator farmhouse-theme fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-ediff evil-args evil-anzu eval-sexp-fu espresso-theme eshell-z eshell-prompt-extras esh-help erc-yt erc-view-log erc-social-graph erc-image erc-hl-nicks emmet-mode elisp-slime-nav dumb-jump dracula-theme django-theme disaster define-word darktooth-theme darkokai-theme darkmine-theme darkburn-theme dakrone-theme cyberpunk-theme crux creamsody-theme company-web company-shell company-ghci company-ghc company-cabal company-c-headers company-auctex column-enforce-mode color-theme-sanityinc-tomorrow color-theme-sanityinc-solarized cmm-mode cmake-mode clean-aindent-mode clang-format cherry-blossom-theme busybee-theme bubbleberry-theme birds-of-paradise-plus-theme badwolf-theme auto-yasnippet auto-highlight-symbol auto-dictionary auto-compile auctex-latexmk apropospriate-theme anti-zenburn-theme ample-zen-theme alect-themes aggressive-indent afternoon-theme adaptive-wrap ace-window ace-link ac-ispell))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.