<commit_before>;;; packages.el --- Purescript Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2016 <NAME> & Contributors
;;
;; Author: <NAME>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3


(setq purescript-packages
  '(
    company
    flycheck
    (flycheck-purescript :toggle (configuration-layer/package-usedp 'flycheck))
    purescript-mode
    psci
    psc-ide
    ))

(defun purescript/post-init-company ()
  (spacemacs|add-company-hook purescript-mode))

(defun purescript/post-init-flycheck ()
  (spacemacs/add-flycheck-hook 'purescript-mode-hook))

(defun purescript/init-flycheck-purescript ()
  (use-package flycheck-purescript
    :commands flycheck-purescript-configure
    :init (add-hook 'flycheck-mode-hook 'flycheck-purescript-configure)))

(defun purescript/init-purescript-mode ()
  (use-package purescript-mode
    :defer t
    :init
    (progn
      (add-hook 'purescript-mode-hook 'turn-on-purescript-indentation)
      (spacemacs/set-leader-keys-for-major-mode 'purescript-mode
        "i="  'purescript-mode-format-imports
        "i`"  'purescript-navigate-imports-return<commit_msg>add-flycheck-hook expects a mode in purescript layer<commit_after>;;; packages.el --- Purescript Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2016 <NAME> & Contributors
;;
;; Author: <NAME>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3


(setq purescript-packages
  '(
    company
    flycheck
    (flycheck-purescript :toggle (configuration-layer/package-usedp 'flycheck))
    purescript-mode
    psci
    psc-ide
    ))

(defun purescript/post-init-company ()
  (spacemacs|add-company-hook purescript-mode))

(defun purescript/post-init-flycheck ()
  (spacemacs/add-flycheck-hook 'purescript-mode))

(defun purescript/init-flycheck-purescript ()
  (use-package flycheck-purescript
    :commands flycheck-purescript-configure
    :init (add-hook 'flycheck-mode-hook 'flycheck-purescript-configure)))

(defun purescript/init-purescript-mode ()
  (use-package purescript-mode
    :defer t
    :init
    (progn
      (add-hook 'purescript-mode-hook 'turn-on-purescript-indentation)
      (spacemacs/set-leader-keys-for-major-mode 'purescript-mode
        "i="  'purescript-mode-format-imports
        "i`"  'purescript-navigate-imports-return
{'fraction_non_alphanumeric': 0.1353039134054954, 'fraction_numerical': 0.009159034138218152, 'mean_word_length': 3.711764705882353, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2630043', 'n_tokens_mistral': 894, 'n_tokens_neox': 867, 'n_words': 151}