* Switch from nabero's ron mode to my own custom ron-mode (hosted on MELPA) * Replace depreciated perl6-mode withraku-mode * Remember to update the init function
40 lines
946 B
EmacsLisp
40 lines
946 B
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)
|
|
raku-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-raku-mode()
|
|
(use-package raku-mode
|
|
:defer t
|
|
:mode (("/perl6/site/sources/" . perl6-mode))))
|