spacemacs/layers/+lang/perl6/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

42 lines
1.1 KiB
EmacsLisp

;;; packages.el --- perl6 layer packages file for Spacemacs.
;;
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
;; Author: Bahtiar `kalkin-`''Gadimov <bahtiar@gadimov.de>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defconst perl6-packages
'(company
evil
flycheck
(flycheck-perl6 :requires flycheck)
;; Not available in MELPA for now
;; TODO check progress on issue: https://github.com/melpa/melpa/issues/5261
(perl6-mode :location (recipe :fetcher github
:repo "perl6/perl6-mode"))
))
(defun perl6/post-init-company ()
(spacemacs|add-company-backends
:backends company-capf
:modes perl6-mode))
(defun perl6/post-init-evil ()
(add-to-list 'spacemacs-jump-handlers-perl6-mode 'evil-jump-to-tag))
(defun perl6/post-init-flycheck ()
(spacemacs/enable-flycheck 'perl6-mode))
(defun perl6/init-flycheck-perl6 ()
(with-eval-after-load 'flycheck
(require 'flycheck-perl6)))
(defun perl6/init-perl6-mode()
(use-package perl6-mode
:defer t
:mode (("/perl6/site/sources/" . perl6-mode))))