選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

22 行
658 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. (load-file (concat "./options/" fnam ".el"))
  12. ))
  13. )
  14. ;; Iterate through all the files given and tangle them
  15. (dolist
  16. (file command-line-args-left)
  17. (print (format "tangling: %s" file))
  18. (org-babel-tangle-file file))