From a2fff147e94f3191c0804a9dd09030192ae367e6 Mon Sep 17 00:00:00 2001 From: Austin Bingham Date: Sun, 21 May 2017 10:09:22 +0200 Subject: [PATCH 1/2] Cleanup per melpa review. --- flycheck-vale.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/flycheck-vale.el b/flycheck-vale.el index da48c3b..5e4c0b3 100644 --- a/flycheck-vale.el +++ b/flycheck-vale.el @@ -1,10 +1,10 @@ -;;; flycheck-vale.el --- flycheck integration for vale +;;; flycheck-vale.el --- flycheck integration for vale -*- lexical-binding: t -*- ;; Copyright (c) 2017 Austin Bingham ;; ;; Author: Austin Bingham ;; Version: 0.1 ;; URL: https://github.com/abingham/flycheck-vale -;; Package-Requires: ((emacs "24.4") (flycheck "0.22")) +;; Package-Requires: ((emacs "24.4") (flycheck "0.22") (let-alist "1.0.4")) ;; ;; This file is not part of GNU Emacs. ;; @@ -44,7 +44,9 @@ ;; ;;; Code: +(require 'cl-lib) (require 'flycheck) +(require 'let-alist) (defgroup flycheck-vale nil "Variables related to flycheck-vale." @@ -131,9 +133,9 @@ passing the results to CALLBACK." flycheck-vale-program "--output" "JSON"))) - (lexical-let ((checker checker) - (callback callback) - (buf (current-buffer))) + (let ((checker checker) + (callback callback) + (buf (current-buffer))) (set-process-sentinel proc #'(lambda (process event) From 7ca0a2a29b6185761bd07369c565774269c909dd Mon Sep 17 00:00:00 2001 From: Austin Bingham Date: Sun, 21 May 2017 11:24:01 +0200 Subject: [PATCH 2/2] Updated README with MELPA info. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index ba0a1c3..3e44fb1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # flycheck-vale +[![MELPA](http://melpa.org/packages/flycheck-vale.svg)](http://melpa.org/#/flycheck-vale) + This package provides [flycheck](http://www.flycheck.org/) integration for [vale](https://github.com/ValeLint/vale). Flycheck is an Emacs system for on-the-fly syntax checking. Vale is a natural language linter. So with @@ -9,6 +11,8 @@ Right now `flycheck-vale` is very new and unpolished. Ideas, PRs, etc. are welco ## Quickstart +Install `flycheck-vale` from MELPA using `package-install` or something equivalent. + To use `flycheck-vale` just `require` it and run `flycheck-vale-setup`: ```emacs-lisp