aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/config.org
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-08-16 12:23:52 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-08-16 12:38:12 +0100
commita19da412b5a2c131a0e7fb17acb098d7deeaae48 (patch)
treeea0e7c5ba2979ea818d8fdb9b6843fd84c5507f7 /Emacs/.config/emacs/config.org
parent515fc7fab84a0b496a63d4b667864558ccb678d4 (diff)
downloaddotfiles-a19da412b5a2c131a0e7fb17acb098d7deeaae48.tar.gz
dotfiles-a19da412b5a2c131a0e7fb17acb098d7deeaae48.tar.bz2
dotfiles-a19da412b5a2c131a0e7fb17acb098d7deeaae48.zip
(Emacs/config)-org compile to PDF on save
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-rw-r--r--Emacs/.config/emacs/config.org27
1 files changed, 1 insertions, 26 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index d22dc6d..5cf5e9e 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -930,6 +930,7 @@ configuration for an example.
Here's a collection of keywords and possible associated symbols for
any prog language of choice. Mostly for reference and copying.
+
#+begin_example
("null" . "Ø")
("list" . "ℓ")
@@ -2977,32 +2978,6 @@ time a clock out occurs.")
(setq-local +org/clock-out-toggle-report
(not +org/clock-out-toggle-report)))))
#+end_src
-** Org compile to PDF on save
-If ~+org/compile-to-pdf-on-save-p~ is non-nil, then compile to
-\(\LaTeX\) and run an async process to compile it to a PDF. Doesn't
-make Emacs hang (like ~org-latex-export-to-pdf~) and doesn't randomly
-crash (like the async handler for org-export).
-#+begin_src emacs-lisp
-(use-package org
- :defer t
- :init
- (defvar +org/compile-to-pdf-on-save-p
- nil
- "Non-nil to activate compile functionality.")
- :general
- (local-leader
- :keymaps 'org-mode-map
- "C" (proc (interactive)
- (if (+org/compile-to-pdf-on-save-f)
- (setq-local +org/compile-to-pdf-on-save-p nil)
- (setq-local +org/compile-to-pdf-on-save-p t))))
- :config
- (+oreo/create-auto-save
- (and (eq major-mode 'org-mode) +org/compile-to-pdf-on-save-p)
- (start-process-shell-command
- "" "*pdflatex*"
- (concat "pdflatex -shell-escape " (org-latex-export-to-latex)))))
-#+end_src
** WAIT Org ref
:PROPERTIES:
:header-args:emacs-lisp: :tangle no