Skip to content
William Zhang edited this page Feb 16, 2017 · 9 revisions

emacs

  1. Install it, e.g. https://emacsformacosx.com
  2. 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)

Huge VM size caused by glibc

glibc_rhel_6_excessive_virtual_memory

$ sudo pmap -x <pid>
Clone this wiki locally