96022308d1
`flycheck-mix` now uses `flycheck-buffer-saved-p` so it is safe to flycheck on idle: https://github.com/tomekowal/flycheck-mix/pull/2
21 lines
671 B
EmacsLisp
21 lines
671 B
EmacsLisp
;;; funcs.el --- Elixir Layer functions File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2016 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
|
|
|
|
(defun spacemacs//elixir-do-end-close-action (id action context)
|
|
(when (eq action 'insert)
|
|
(newline-and-indent)
|
|
(forward-line -1)
|
|
(indent-according-to-mode)))
|
|
|
|
(defun spacemacs//elixir-enable-compilation-checking ()
|
|
"Enable compile checking if `elixir-enable-compilation-checking' is non nil."
|
|
(when (or elixir-enable-compilation-checking)
|
|
(flycheck-mix-setup)))
|