This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+spacemacs/spacemacs-misc/packages.el
syl20bnr ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00

43 lines
1.3 KiB
EmacsLisp

;;; packages.el --- Spacemacs Misc. Layer packages File
;;
;; 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
(setq spacemacs-misc-packages
'(
dumb-jump
request
))
(defun spacemacs-misc/init-dumb-jump ()
(use-package dumb-jump
:defer t
:init
(progn
;; not activating `dumb-jump-mode' because it only adds key bindings, and
;; they conflict with existing bindings (see
;; https://github.com/syl20bnr/spacemacs/issues/7107)
(spacemacs/set-leader-keys "jq" #'dumb-jump-quick-look)
;; Use Helm or Ivy as the selector for dumb-jump.
(cond
((configuration-layer/layer-used-p 'ivy)
(setq dumb-jump-selector 'ivy))
((configuration-layer/layer-used-p 'helm)
(setq dumb-jump-selector 'helm)))
;; Since it's dumb, we add it to the end of the default jump handlers. At
;; the time of writing it is the only default jump handler. (gtags remains
;; mode-local)
(add-to-list 'spacemacs-default-jump-handlers 'dumb-jump-go 'append))))
(defun spacemacs-misc/init-request ()
(setq request-storage-directory
(concat spacemacs-cache-directory "request/")))