-
Notifications
You must be signed in to change notification settings - Fork 2
emacs
William Zhang edited this page Mar 16, 2017
·
12 revisions
- Install it, e.g. https://emacsformacosx.com
- edit ~/.emacs
;; http://orgmode.org/manual/Installation.html#Installation (package-initialize) ;; org publish ;; http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html (require 'ox-publish) (setq org-publish-project-alist '( ("org-notes" :base-directory "~/Notes/org" :base-extension "org" :publishing-directory "~/Notes/publish" :recursive t :publishing-function org-html-publish-to-html :headline-levels 4 ; Just the default for this project. :auto-preamble t ) ("org-static" :base-directory "~/Notes/org" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/Notes/publish" :recursive t :publishing-function org-publish-attachment ) ("org" :components ("org-notes" "org-static")) )) ;; org2markdown ;; Add the following three lines to enable package install. ;; then M-x package-install to install ox-gfm. ;; then add the fourth line (require 'ox-gfm). ;; http://orgmode.org/manual/Installation.html#Installation (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) (require 'ox-gfm)
Follow the steps in http://www.braveclojure.com/basic-emacs/. Make sure to upgrade the emacs packages follow the instructions in README.md.
Created by Wenliang Zhang.