From 4007ca81e0105119c8ed754e654a731934f5154c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 8 Apr 2018 16:13:12 -0700 Subject: [emacs] Large refactoring. At first I wanted to add support for java, and then I realized that maintaining a giant file with all the packages was not working as I was expected. The configuration is broken down to multiple files now, with each major mode in a separate file, and the main modules in their own too. This should make it easier to maintain and organize. --- emacs.d/modules/module-pants.el | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 emacs.d/modules/module-pants.el (limited to 'emacs.d/modules/module-pants.el') diff --git a/emacs.d/modules/module-pants.el b/emacs.d/modules/module-pants.el new file mode 100644 index 0000000..5a7abbb --- /dev/null +++ b/emacs.d/modules/module-pants.el @@ -0,0 +1,27 @@ +(require 'config-package) + +(use-package pants + :load-path (lambda () (expand-file-name "github.com/fcuny/pants.el/" fcuny/workspace)) + + :config + (setq pants-completion-system 'ivy + pants-source-tree-root (expand-file-name "git.twitter.biz/source" fcuny/workspace) + pants-bury-compilation-buffer t + pants-extra-args "-q") + + :bind (("C-c b" . pants-find-build-file) + ("C-c r" . pants-run-binary) + ("C-c t" . pants-run-test))) + +(defhydra hydra-pants (:hint nil :exit t) +" +^Command^ +_g_: go to build +_b_: build a binary +_t_: run the tests +" + ("g" pants-find-build-file) + ("b" pants-run-binary) + ("t" pants-run-test)) + +(provide 'module-pants) -- cgit 1.4.1