I use org mode for my routine work. I use sequence C-c C-e lo to export and open pdf almost 30 times a day Is it possible to bind this sequence to print button. It will make my job easy
1 Answer
Try:
(defun org-export-to-pdf-and-open ()
(org-open-file (org-latex-export-to-pdf)))
(global-set-key (kbd "<print>") #'org-export-to-pdf-and-open)
(Your question is not very clear, let me know if I guessed incorrectly what you wanted.)
key-translation-map
's docstring.lo
you have (do you really mean theC-c C-e l o
sequence, or was thelo
just a typo)? And what "print" button are you thinking of? Please clarify.C-h k
and then click on the print button you're referring to, and Emacs should tell you the name of the command.C-c C-e
isorg-export-dispatch
generating a menu where the keystrokesl
ando
stand forExport to *L*aTeX
andAs PDF and *o*pen
, respectively. That leads me to the assumption that this question is not really aboutps-print-buffer
or anything similar but about org-mode export to LaTeX and PDF. @Vaibhav: If my assumption is right please clarify that in the question.