Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.65 KB

README.org

File metadata and controls

48 lines (33 loc) · 1.65 KB

This is my notes, all written in Emacs.

Configuration files

Configure Server

  1. Add server section in nginx.conf to /etc/nginx/nginx.conf http section
  2. Add 127.0.0.1 blog to /etc/hosts
  3. Restart nginx server
  4. Create folder ~/notes and ~/notes.git, and make sure Home folder $HOME have executable permission which means can enter
  5. Link ~/notes to /srv/http/ by sudo ln -s /home/your-username/notes /srv/http/
  6. Run git init --bare in ~/notes.git/
  7. Copy post-receive to ~/notes.git/hooks/ and make it executable by chmod +x ~/notes.git/hooks/post-receive

Work flow

  1. Write draft note in org format within drafts folder
  2. Move completed draft note from root folder or sub-folder: life, misc, techs, trans
  3. Run M-x org-publish-project RET notes RET
  4. Push rencent generated html in ~/public_html to VPS
  5. Push org files to GitHub (Optional)

Format Conventions

  • folders and path: underlined
  • files: italic
  • code and command: monospace
  • environment varialbes: bold
  • blank lines:
    • 2 blank lines between sections (2 lines enough to seperate section from list)
    • 1 blank lines between lists (unless they’re compact enough) (org-mode thinks 2 lines are different lists)
    • 1 blank line between heading/list and its content
  • parenthesis:

    use parenthesis according to its content, namely half-width parenthesis around English text, otherwise full-width parenthesis

  • mixed English and Chinese: use one space between them