mirror of
https://github.com/correl/melpa.git
synced 2024-12-25 11:11:17 +00:00
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
This commit is contained in:
parent
b034024bd3
commit
b0d2812d31
1 changed files with 4 additions and 1 deletions
|
@ -8,4 +8,7 @@
|
||||||
(unless (featurep 'package-build)
|
(unless (featurep 'package-build)
|
||||||
(let ((load-path (cons ".." load-path)))
|
(let ((load-path (cons ".." load-path)))
|
||||||
(require 'package-build)))
|
(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)))))
|
||||||
|
|
Loading…
Reference in a new issue