diff --git a/README.md b/README.md index f2ab3ee..da61d01 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ You can use this configuration as your base Emacs configuration, or adapt it to 1. Clone, copy, or merge this repository as your `~/.emacs.d/` directory 2. Copy or merge the provided `profiles_sample.clj` to your `~/.lein/` directory as `profiles.clj` +3. Add a flycheck-clojure configuration to your Clojure project(s)' `project.clj`. You can see [an example of this step](https://github.com/clojure-emacs/squiggly-clojure/blob/master/sample-project/project.clj) in the flycheck-clojure repository. Load a Clojure file, and execute `cider-jack-in` (`C-c M-j`). @@ -18,9 +19,11 @@ Happy Clojure hacking! ## Featured packages * [paredit, very basic intro](http://www.braveclojure.com/using-emacs-with-clojure/#5__Paredit), [cheat sheet](https://github.com/joelittlejohn/paredit-cheatsheet) +* [flycheck](http://www.flycheck.org/), [quick start](http://www.flycheck.org/en/latest/guide/quickstart.html) * [clojure-mode](https://github.com/clojure-emacs/clojure-mode) * [cider](https://github.com/clojure-emacs/cider), [cider-mode](https://github.com/clojure-emacs/cider#cider-mode) * [clj-refactor](https://github.com/clojure-emacs/clj-refactor.el), [refactor functions](https://github.com/clojure-emacs/clj-refactor.el#usage) +* [flycheck-clojure, aka squiggly-clojure](https://github.com/clojure-emacs/squiggly-clojure) ## Package versions diff --git a/cfg-flycheck.el b/cfg-flycheck.el new file mode 100644 index 0000000..28fbe50 --- /dev/null +++ b/cfg-flycheck.el @@ -0,0 +1,8 @@ +(require-package 'flycheck) +(require-package 'flycheck-clojure) + +(require 'flycheck) + +(eval-after-load 'flycheck '(flycheck-clojure-setup)) + +(add-hook 'after-init-hook #'global-flycheck-mode) diff --git a/init.el b/init.el index cafa685..a75d8a1 100644 --- a/init.el +++ b/init.el @@ -57,6 +57,7 @@ re-downloaded in order to locate PACKAGE." (exec-path-from-shell-initialize)) (dolist (file '("cfg-paredit.el" + "cfg-flycheck.el" "cfg-hlsexp.el" "cfg-cider.el" "cfg-cljrefactor.el")) diff --git a/profiles_sample.clj b/profiles_sample.clj index cbd547d..6752cd9 100644 --- a/profiles_sample.clj +++ b/profiles_sample.clj @@ -1,2 +1,3 @@ {:user {:plugins [[cider/cider-nrepl "0.8.2"] - [refactor-nrepl "0.3.0-SNAPSHOT"]]}} + [refactor-nrepl "0.3.0-SNAPSHOT"]] + :dependencies [[acyclic/squiggly-clojure "0.1.2-SNAPSHOT"]]}}