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/+config-files/cfengine/packages.el

35 lines
898 B
EmacsLisp
Raw Normal View History

2016-04-14 21:48:33 +00:00
;;; packages.el --- cfengine layer packages file for Spacemacs.
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: Nick Anderson <nick@cmdln.org>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defconst cfengine-packages
'(
(cfengine3-mode :location built-in)
company
eldoc
flycheck
))
2016-04-14 21:48:33 +00:00
(defun cfengine/init-cfengine3-mode ()
2016-04-14 21:48:33 +00:00
(use-package cfengine3-mode
:defer t
:mode ("\\.cf\\'" . cfengine3-mode)
:init (spacemacs/set-leader-keys-for-major-mode 'cfengine3-mode
"j" 'cfengine3-reformat-json-string)))
2016-04-14 21:48:33 +00:00
(defun cfengine/post-init-company ()
(spacemacs|add-company-hook cfengine3-mode))
(defun cfengine/post-init-eldoc ()
(add-hook 'cfengine3-mode-hook 'eldoc-mode))
2016-04-14 21:48:33 +00:00
(defun cfengine/post-init-flycheck ()
(spacemacs/add-flycheck-hook 'cfengine3-mode-hook))