From b0d2812d315ecfe6817e38011f860101b522a973 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Wed, 3 Sep 2014 09:37:13 +0100 Subject: [PATCH] In recipe buffers, override package-build-*-dir This ensures that recipes can simply be opened and built in-place using C-c C-c, even if package-build had previously been initialized with a different base directory. See https://github.com/cask/cask/issues/236 --- recipes/.dir-locals.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes/.dir-locals.el b/recipes/.dir-locals.el index 556b85eb..7a1eb685 100644 --- a/recipes/.dir-locals.el +++ b/recipes/.dir-locals.el @@ -8,4 +8,7 @@ (unless (featurep 'package-build) (let ((load-path (cons ".." load-path))) (require 'package-build))) - (package-build-minor-mode)))))) + (package-build-minor-mode) + (set (make-local-variable 'package-build-working-dir) (expand-file-name "../working/")) + (set (make-local-variable 'package-build-archive-dir)) (expand-file-name "../packages/") + (set (make-local-variable 'package-build-recipes-dir)) default-directory)))))