Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

176 lines (168 sloc) 3.739 kb

Org-mode Workshop

Introduction

Org-mode

  • 2003, Free Software
  • Organizing everything in your life
    • Major mode in emacs

Emacs

  • Existed for decades
  • Editor for text files
  • Keyboard commands heavy
  • Self-documenting
  • Highly customizable/extensible
  • Major & Minor Modes

Why Emacs?

  • Many other useful systems
  • Ultra portable

Plain text

  • Truly portable
  • grep and other tools
  • Version control

Emacs Basics

Starting and Exiting emacs

  • emacs <filename>
  • emacs
  • Quitting emacs

Opening and Closing files

  • Open file
  • Save file
  • Close file
  • Concept of Buffers
    • Switching Buffers
    • Closing Buffers

Basic Movement

  • Forward/Backward Char
  • Forward/Backward Word
  • Previous/Next Line
  • Forward/Backward Sentence
  • Previous/Next Screen
  • Beginning/End of Line
  • Beginning/End of Buffer
  • Search

Basic Editing

  • Killing/Cutting text
  • Yanking text
  • Undo

Modes

  • Major Modes
    • Python
    • Shell
    • Dired
  • Minor modes
    • Flyspell
    • Yasnippet

Getting Help

  • C-h a
  • C-h f
  • C-h c
  • C-h w
  • C-h i

Customizable

Highly customizable

  • Inhibit Start-up message
    (setq inhibit-startup-message t)
        
  • Set default major mode as org-mode
    (setq default-major-mode 'org-mode)
        

Notes

Org-mode as an outliner

  • Anything that has structure can be represented as an outline
  • Capture, write, edit, restructure notes and information

Outline keys

Action Key
Cycle subtree TAB
Cycle globally S-TAB

Restructuring Text

  • Up/Down
  • Promote/Demote

Alt (+ Shift) + Arrow keys

Hyperlinks/Markup

  • Emphasis and monospace
    • bold
    • italic
    • underline
    • strike through
    • code
  • Hyperlinks

Directives

  • #+TITLE:
  • #+AUTHOR:
  • #+STARTUP: hidestars

Tables

Structure editing

  • M-<up>/<down>
  • M-S-<up>/<down>
  • M-<right>/<left>
  • M-S-<right>/<left>
  • C-c ^

Spreadsheets

  • Calculations
  • Format specifier

Exporting & Publishing

HTML

  • C-c C-e h
  • C-c C-e b

LaTeX

  • Embedded LaTeX
  • C-c C-e l
  • C-c C-e p
  • C-c C-e d

Babel

Including code blocks

  • Allows you to include code in documents
    • Literate Programming
  • Include the output in exported files
    • Useful for writing documentation
  • Supports a whole bunch of languages
    • C
    • Haskell
    • Javascript
    • Python
    • R
    • Shell
    • You can add other languages!

Enable Languages

(org-babel-do-load-languages
             'org-babel-load-languages
             '((python . t)
               (emacs-lisp . t)
               (ditaa . t)
               (sh . t)
               ))

Planning

TO-DO items

Schedules/Deadlines

  • C-c C-s
  • C-c C-d
  • Date/Time interface

Tags

  • C-c C-c
  • completion

Capture

  • Adding capture templates

Sparse Trees

  • C-c / t

Agenda views

  • Defining agenda files
  • C-c a a
  • C-c a t

Refiling

Conclusion

Topics NOT covered

  • Property Drawer
  • Clocking

Orgmode Quotes

Other applications

  • MobileOrg
  • org-info-js
  • org2blog
Jump to Line
Something went wrong with that request. Please try again.