- ;; Tangle an org mode file with babel using emacs.
- (let ((default-directory "~/.emacs.d"))
- (normal-top-level-add-subdirs-to-load-path))
-
- (load-file (if (getenv "OPTIONS")
- (concat (concat "./" (getenv "OPTIONS")) ".el")
- "./options.el"))
-
- (require 'org-install)
- (require 'org)
-
- ;; Iterate through all the files given and tangle them
- (dolist
- (file command-line-args-left)
- (princ file)
- (org-babel-tangle-file file))
|