aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-09 23:24:50 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-09 23:28:27 -0700
commitfe46aafabf79d4b468209c487c153a0637c153ee (patch)
tree4a8b0cd86281642bb80a0e053c48e0a5371db1d3 /emacs
parent7460b62ee07ae3a14530ab97022b8f2186e4a7b1 (diff)
downloadconsfigurator-fe46aafabf79d4b468209c487c153a0637c153ee.tar.gz
build and install consfigurator.el
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'emacs')
-rw-r--r--emacs/Makefile6
-rw-r--r--emacs/consfigurator.el.in31
2 files changed, 37 insertions, 0 deletions
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/, <FH>) } \
+ 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 <spwhitton@spwhitton.name>
+;; 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 <https://www.gnu.org/licenses/>.
+
+;;; Code:
+
+;;;###autoload
+(defun activate-consfigurator-indentation-hints ()
+ "Activate indentation hints for Consfigurator properties."
+ (interactive)
+ @putforms@)
+
+(provide 'consfigurator)
+
+;;; consfigurator.el ends here