summaryrefslogtreecommitdiff
path: root/graphics/asymptote/build-scripts/asy-indent.el
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/build-scripts/asy-indent.el')
-rw-r--r--graphics/asymptote/build-scripts/asy-indent.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/asymptote/build-scripts/asy-indent.el b/graphics/asymptote/build-scripts/asy-indent.el
new file mode 100644
index 0000000000..06189e5e60
--- /dev/null
+++ b/graphics/asymptote/build-scripts/asy-indent.el
@@ -0,0 +1,6 @@
+(load-file "/usr/local/share/asymptote/asy-mode.el")
+(asy-mode)
+(indent-region (point-min) (point-max) nil)
+(untabify (point-min) (point-max))
+(delete-trailing-whitespace (point-min) (point-max))
+(save-buffer)