mac 下编译最新版本的 org mode
25 August 2018
➜ git clone https://code.orgmode.org/bzg/org-mode.git
➜ brew install texinfo
➜ export PATH=/usr/local/opt/texinfo/bin:$PATH
➜ export LDFLAGS="-L/usr/local/opt/texinfo/lib"

# 修改 如下变量
➜ cd org-mode
➜ cat < local.mk << EOF
EMACS	= /Applications/Emacs.app/Contents/MacOS/Emacs
prefix	= /Applications/Emacs.app/Contents/Resources/
lispdir = $(prefix)/site-lisp/org
datadir = $(prefix)/etc/org
BATCH	= $(EMACSQ) -batch \
        --eval '(setq create-lockfiles nil)' \
        --eval '(setq vc-handled-backends nil org-startup-folded nil)'
EOF

➜ make && make install