LaTeX insta previews
This commit is contained in:
parent
e9fc95f281
commit
44bfd2fa1f
31
config.org
31
config.org
|
|
@ -288,17 +288,28 @@ A recreation of the iconic Suckless Dynamic Menu.
|
|||
** Org Mode
|
||||
*** Simple Org Mode Preview in HTML
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package org-preview-html
|
||||
:ensure t
|
||||
:config
|
||||
:bind
|
||||
("C-c r" . 'org-preview-html-mode)
|
||||
(use-package htmlize
|
||||
:ensure t))
|
||||
(defun update-other-buffer ()
|
||||
(interactive)
|
||||
(other-window 1)
|
||||
(revert-buffer nil t)
|
||||
(other-window -1))
|
||||
|
||||
(add-to-list 'load-path
|
||||
(concat user-emacs-directory
|
||||
(convert-standard-filename "elisp/")))
|
||||
(defun org-compile-beamer-and-update-other-buffer ()
|
||||
"Has as a premise that it's run from an org-mode buffer and the
|
||||
other buffer already has the PDF open"
|
||||
(interactive)
|
||||
(org-beamer-export-to-pdf)
|
||||
(update-other-buffer))
|
||||
|
||||
(defun org-compile-latex-and-update-other-buffer ()
|
||||
"Has as a premise that it's run from an org-mode buffer and the
|
||||
other buffer already has the PDF open"
|
||||
(interactive)
|
||||
(org-latex-export-to-pdf)
|
||||
(update-other-buffer))
|
||||
|
||||
(define-key org-mode-map (kbd "C-c lr") 'org-compile-latex-and-update-other-buffer)
|
||||
(define-key org-mode-map (kbd "C-c br") 'org-compile-beamer-and-update-other-buffer)
|
||||
#+END_SRC
|
||||
*** LateX Preview
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
|
|
|||
Loading…
Reference in New Issue