Skip to content

Instantly share code, notes, and snippets.

@neverkas
Last active March 17, 2021 04:40
Show Gist options
  • Save neverkas/d57f907b643345046b8353f3803e176a to your computer and use it in GitHub Desktop.
Save neverkas/d57f907b643345046b8353f3803e176a to your computer and use it in GitHub Desktop.
Para exportar archivos .org a html
(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