-
Notifications
You must be signed in to change notification settings - Fork 2
emacs
William Zhang edited this page Dec 28, 2018
·
12 revisions
- Install it from https://emacsformacosx.com
- edit ~/.emacs
;; http://orgmode.org/manual/Installation.html#Installation (package-initialize) ;; Hint when exceed 80 columns using whitespace-mode. (require 'whitespace) (setq whitespace-line-column 80) (setq whitespace-style '(face lines-tail)) (add-hook 'org-mode-hook 'whitespace-mode) ;; Also and a ruler at the top of the window. (add-hook 'org-mode-hook 'ruler-mode) ;; 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 "~/workspace/org" :base-extension "org" :publishing-directory "~/workspace/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 "~/workspace/org" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/workspace/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) ;; Wrap at Window Edge for org-mode (setq org-startup-truncated nil) ;; Max the frame (custom-set-variables '(initial-frame-alist (quote ((fullscreen . maximized)))))
- Follow the steps in http://www.braveclojure.com/basic-emacs/.
Make sure to upgrade the emacs packages following the instructions in README.md.
- Add my org stuff in its own file: ~/.emacs.d/customization/org-stuff.el
;; org publish (require 'ox-publish) (setq org-publish-project-alist '( ("org-notes" :base-directory "~/workspace/org" :base-extension "org" :publishing-directory "~/workspace/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 "~/workspace/org" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/workspace/publish" :recursive t :publishing-function org-publish-attachment ) ("org" :components ("org-notes" "org-static")) )) ;; org2markdown (require 'ox-gfm) ;; Wrap at Window Edge for org-mode (setq org-startup-truncated nil)
- Include the org-stuff.el in ~/.emacs.d/init.el.
- Troubleshooting
- Install latest colure-mode package, see issue
Move the buffer/window around per buffer-move
Save it as ~/.emacs.d/customizations/buffer-move.el, and load it in ~/.emacs.d/init.el.
Created by Wenliang Zhang.