Last active
March 17, 2021 04:40
-
-
Save neverkas/d57f907b643345046b8353f3803e176a to your computer and use it in GitHub Desktop.
Para exportar archivos .org a html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun exportar-archivo (f) | |
(save-excursion (find-file f) (org-html-export-to-html f) | |
)) | |
(defun exportar-archivos (dir) | |
(mapc 'exportar-archivo (directory-files dir t ".org$") | |
)) | |
;(exportar-archivos "~/Documentos/git/manu-docs/testing/src/") | |
(exportar-archivos default-directory) | |
; find-file - opens a file in a buffer (this is what is run when you type C-x C-f) | |
; mapc: aplica una función a cada elemento de una lista | |
; directory-files: obtiene todos los archivos y carpetas de un directorio |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment