mirror of
https://github.com/correl/melpa.git
synced 2024-11-15 03:00:14 +00:00
b0d2812d31
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
14 lines
921 B
EmacsLisp
14 lines
921 B
EmacsLisp
((emacs-lisp-mode . ((flycheck-disabled-checkers '(emacs-lisp emacs-lisp-checkdoc))))
|
|
(nil . ((eval . (when (and (buffer-file-name)
|
|
(file-regular-p (buffer-file-name))
|
|
(string-match-p "^[^.]" (buffer-file-name)))
|
|
(emacs-lisp-mode)
|
|
(when (fboundp 'flycheck-mode)
|
|
(flycheck-mode -1))
|
|
(unless (featurep 'package-build)
|
|
(let ((load-path (cons ".." load-path)))
|
|
(require 'package-build)))
|
|
(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)))))
|