No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

23 líneas
728 B

  1. ;;-*-mode: emacs-lisp; coding: utf-8;-*-
  2. ;; Copyright: 2016 Mitchell Tishmack
  3. ;; Tangle an org mode file with babel using emacs.
  4. (require 'org-install)
  5. (require 'org)
  6. (defun tangle/yn (p) (if (bound-and-true-p p) "yes" "no"))
  7. (defun tangle/file (file p) (if (eval p) (concat "tmp/" file) "no"))
  8. (if (getenv "USEROPTS")
  9. (dolist (fnam (split-string (getenv "USEROPTS") ":"))
  10. (if (not (member fnam '("" nil)))
  11. (if (file-readable-p (concat "./options/" fnam ".el"))
  12. (load-file (concat "./options/" fnam ".el")))
  13. ))
  14. )
  15. ;; Iterate through all the files given and tangle them
  16. (dolist
  17. (file command-line-args-left)
  18. (print (format "tangling: %s" file))
  19. (org-babel-tangle-file file))