;These two lines should be at the start of your .emacs (_emacs on Windows) file (setq load-path (cons (expand-file-name "~/src/emacs-lisp/") load-path)) (require 'org-install) ;The code for syntax highlighting, include it at the end of ;your .emacs file. Just copying this file to some directory ;will not work :) (defun run-ascii-sweave-on-buffer () (ess-command "library(ascii)\n") (ess-command (concat "Sweave(\"" (buffer-file-name) "\", RweaveAsciidoc)\n"))) (defun htmlize-blog-entry () (interactive) (save-excursion (let* (goto-char (point-min)) (basic-save-buffer) (switch-to-buffer (org-export-region-as-html (point-min) (point-max) t "*HTML*")) (while (re-search-forward "
") 'sweave-and-htmlize-blog-entry) (define-key global-map (kbd "") 'htmlize-blog-entry)