From 30c0c11f5e8da2306970477630a97c472dd7941b Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 12 Jul 2021 23:53:52 +0300 Subject: add makefile --- docs.el | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs.el (limited to 'docs.el') diff --git a/docs.el b/docs.el new file mode 100644 index 0000000..d6d53ff --- /dev/null +++ b/docs.el @@ -0,0 +1,18 @@ +;;; docs.el --- configuration for docs exports +;;; Commentary: +;;; Code: +(require 'org) +(require 'ox) +(require 'ox-ascii) + +;; We do NOT want backup files. +(setq make-backup-files nil) + +(defun docs-install-txt () + "Extract and export installation manual from the User Manual." + (let ((org-export-with-toc nil)) + (re-search-forward "^* Installation") + (org-ascii-export-to-ascii nil t))) + +(provide 'docs) +;;; docs.el ends here -- cgit v1.2.3