From fe46aafabf79d4b468209c487c153a0637c153ee Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 9 Mar 2021 23:24:50 -0700 Subject: build and install consfigurator.el Signed-off-by: Sean Whitton --- emacs/Makefile | 6 ++++++ emacs/consfigurator.el.in | 31 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 emacs/Makefile create mode 100644 emacs/consfigurator.el.in (limited to 'emacs') diff --git a/emacs/Makefile b/emacs/Makefile new file mode 100644 index 0000000..1c29533 --- /dev/null +++ b/emacs/Makefile @@ -0,0 +1,6 @@ +SUBSTITUTE = 'BEGIN { open FH, "<", "put-forms.el"; \ + chomp($$forms = join "", map s/^/ /r, grep /^\(put/, ) } \ + s/ \@putforms@/$$forms/' + +consfigurator.el: consfigurator.el.in put-forms.el + perl -wpe$(SUBSTITUTE) consfigurator.el.in >consfigurator.el diff --git a/emacs/consfigurator.el.in b/emacs/consfigurator.el.in new file mode 100644 index 0000000..a39fe03 --- /dev/null +++ b/emacs/consfigurator.el.in @@ -0,0 +1,31 @@ +;;; consfigurator.el --- utilities for working with Consfigurator consfigs + +;; Author: Sean Whitton +;; Version: 0.2.1 + +;; Copyright (C) 2021 Sean Whitton + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Code: + +;;;###autoload +(defun activate-consfigurator-indentation-hints () + "Activate indentation hints for Consfigurator properties." + (interactive) + @putforms@) + +(provide 'consfigurator) + +;;; consfigurator.el ends here -- cgit v1.2.3