aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-08-20 10:28:52 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-08-20 10:28:52 +0200
commite72cebd0310476582f606d70b3dbc378011cd370 (patch)
tree77ad2b6add3e2773b49382b1029e45a87edb49d3
parent357087bbbd56523877a09f6496b4f8c580696e4b (diff)
downloaddotfiles-e72cebd0310476582f606d70b3dbc378011cd370.tar.gz
dotfiles-e72cebd0310476582f606d70b3dbc378011cd370.zip
emacs: remove obsolete org export functions
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
-rw-r--r--.config/doom/config.el46
1 files changed, 0 insertions, 46 deletions
diff --git a/.config/doom/config.el b/.config/doom/config.el
index f025206..19f519e 100644
--- a/.config/doom/config.el
+++ b/.config/doom/config.el
@@ -196,52 +196,6 @@
(setq! org-startup-indented nil
org-hide-leading-stars nil))
-;;; Exporting: some functions I use when exporting to PDF cleanly.
-
-(defun mssola/move-file-to-out (dir name ext)
- "Move out from `DIR' the given file `NAME' if it exists.
-Note that `EXT' must include the period character."
-
- (when (file-exists-p (concat dir name ext))
- (unless (file-directory-p (concat dir "out/"))
- (make-directory (concat dir "out/")))
- (when (file-exists-p (concat dir "out/" name ext))
- (delete-file (concat dir "out/" name ext)))
- (rename-file (concat dir name ext) (concat dir "out/" name ext))))
-
-(defun mssola/export-to-pdf ()
- "Export the current org document to PDF.
-The generated file will live in an `out' directory (created if it
-isn't there already). Everything else will be cleaned up, so no
-littering will happen locally."
-
- (interactive)
-
- (with-current-buffer (current-buffer)
- (org-latex-export-to-pdf)
-
- (let* ((fn (buffer-file-name (current-buffer)))
- (dir (file-name-directory fn))
- (name (file-name-base fn))
- (autodir (concat dir "auto")))
-
- (when (file-directory-p autodir)
- (delete-directory autodir t))
-
- (when (file-exists-p (concat dir name ".tex"))
- (delete-file (concat dir name ".tex")))
-
- (mssola/move-file-to-out dir name ".pdf"))))
-
-(map! "<f1>" #'mssola/export-to-pdf)
-
-;; Do funny things so both pdflatex and bibtex just work as expected.
-(setq org-latex-pdf-process
- '("pdflatex -interaction nonstopmode -output-directory %o %f"
- "bibtex %b"
- "pdflatex -interaction nonstopmode -output-directory %o %f"
- "pdflatex -interaction nonstopmode -output-directory %o %f"))
-
;;; Email
;; Sometimes the load path is not properly set for RPM installs...