diff options
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/Makefile | 6 | ||||
-rw-r--r-- | emacs/consfigurator.el.in | 31 |
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 |