diff options
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/Makefile | 8 | ||||
-rw-r--r-- | emacs/put-forms.el | 13 |
2 files changed, 8 insertions, 13 deletions
diff --git a/emacs/Makefile b/emacs/Makefile index 1c29533..3f9309c 100644 --- a/emacs/Makefile +++ b/emacs/Makefile @@ -1,6 +1,14 @@ +LOAD = '(let ((asdf:*user-cache* "/tmp") \ + (asdf:*central-registry* (list (truename "..")))) \ + (asdf:load-system "consfigurator"))' + SUBSTITUTE = 'BEGIN { open FH, "<", "put-forms.el"; \ chomp($$forms = join "", map s/^/ /r, grep /^\(put/, <FH>) } \ s/ \@putforms@/$$forms/' consfigurator.el: consfigurator.el.in put-forms.el perl -wpe$(SUBSTITUTE) consfigurator.el.in >consfigurator.el + +put-forms.el: + sbcl --disable-debugger --eval '(require "asdf")' --eval $(LOAD) \ + --eval '(consfigurator::dump-properties-for-emacs "$@")' --quit diff --git a/emacs/put-forms.el b/emacs/put-forms.el deleted file mode 100644 index 91273bb..0000000 --- a/emacs/put-forms.el +++ /dev/null @@ -1,13 +0,0 @@ -;; automatically generated by -;; CONSFIGURATOR::DUMP-PROPERTIES-FOR-EMACS; do not edit - -(put 'consfigurator:deploys. 'common-lisp-indent-function '2) -(put 'consfigurator:deploys-these. 'common-lisp-indent-function '2) -(put 'file:has-content 'common-lisp-indent-function '1) -(put 'file:has-content. 'common-lisp-indent-function '1) -(put 'file:contains-lines. 'common-lisp-indent-function '1) -(put 'file:data-uploaded. 'common-lisp-indent-function '2) -(put 'file:secret-uploaded. 'common-lisp-indent-function '2) -(put 'file:regex-replaced-lines. 'common-lisp-indent-function '2) -(put 'os:debian-stable. 'common-lisp-indent-function '1) -(put 'chroot:%os-bootstrapped. 'common-lisp-indent-function '2) |