2010-11-13

EMACS ORG MODE

MANIPULATION
[tab]expand
[Shift]-[tab]colapse
M-[left]/[right]nesting level
M-[up]/[down]change place on the same level
[Shift]-[left]/[right]task status | list type
[Shift]-[down]task priority
EDIT
C-c C-qadd/change tag
C-c C-x padd property
C-c C-x ddelete property
C-c C-eexport to another format
C-c C-cedit checkbox
C-c C-e tinstert default template
-----horizontal line
\\end of line (during export to html)
LINKS
C-c C-ledit link
C-c C-ofollow the link
[[link][description]]link
<<link>>target
[[target]]link to target
[[header]]link to header
DATE and TIME
C-c .add timestamp
[Shift]-[right]change timestamp
C-c C-dadd deadline time
C-c C-sadd schedule time
AGENDA
C-c aopen agenda
fforward week
bbackward week
.present day
C-c [add file to agenda
C-c ]remove from agenda
org-agenda-file variable
[space]press space in agenda window to go to event
ELEMENTS
[% | /]lists status
[ ]checkbox
[fn:1]footnote
TABLES
C-^sort table
| col1 | col2 | [tab]add table row
|-add horizontal line
M-[left] | [right] | [up] | [down] move column | row
[Shift]-M-[down]insert row above
[Shift]-M-[up]delete current row
[Shift]-M-[right]insert column
[Shift]-M-[left]delete column
insert vertical line at first row if want export to html
#+ATTR_HTML: border="1" rules="all" frame="all"border between cells during export to html
<nr>put in empty cell to set column width, you can set #+STARTUP: align parameter
calc
:=add forumla to the current field
:=vmean(@II..@III)vertical arythmetic mean from II to III horizontal line
:=vsum(@II..@III)vertical sum from II to III horizontal line
=add forumla to the whole column, if the field contains only ‘=’, the previously stored formula for this column is used
C-c ?find table current field coordinates
C-c }grid coordinates on/off
$1first column
@1first row
$-2third column from right to left
$+2third column from left to right
@Ifirst hline
@I..@IIrange from first hline to second hline
@1$21nd row, 2rd column
@-1$-3the field one row up, three columns to the left
@-I$2field just under hline above current row, column 2
@2$1..@4$36 fields between these two fields
@-1$-2..@-13 numbers from the column to the left, 2 up to current row
C-u C-c =install a new formula for the current field
C-c =edit the formula for the current field
C-c C-crecompute formula
C-u C-c *recompute all table
C-u C-c *recompute all table
#+TBLFM: @10$2=vsum(@II..@III)::@11$2=@2$2+@3$2compute multi formulas
#+TBLFM: $3=@-1+1::@2$3=1ordered nubmer list at 3rd col
EXPORT OPTION
     #+TITLE:       the title to be shown (default is the buffer name)
     #+AUTHOR:      the author (default taken from user-full-name)
     #+DATE:        a date, fixed, of a format string for format-time-string
     #+EMAIL:       his/her email address (default from user-mail-address)
     #+DESCRIPTION: the page description, e.g. for the XHTML meta tag
     #+KEYWORDS:    the page keywords, e.g. for the XHTML meta tag
     #+LANGUAGE:    language for HTML, e.g. ‘en’ (org-export-default-language)
     #+TEXT:        Some descriptive text to be inserted at the beginning.
     #+TEXT:        Several lines may be given.
     #+OPTIONS:     H:2 num:t toc:t \n:nil @:t ::t |:t ^:t f:t TeX:t ...
     #+LINK_UP:     the ``up'' link of an exported page
     #+LINK_HOME:   the ``home'' link of an exported page
     #+LATEX_HEADER: extra line(s) for the LaTeX header, like \usepackage{xyz}

you can put all above settings to one file and point at by:
#+SETUPFILE: ~/[filepath]
EXPORT TIPS
@<b>bold text@</b>use html tags
#+HTML: Literal HTML code for exportas above
#+BEGIN_HTML
All lines between these markers are exported literally
#+END_HTML
as above
! before export to pdf you must install rubber

EMACS DIRED MODE

M-x direddired mode
oopen file in split window horizontaly
enteropen file | enter dir
Ccopy file
Rrename file
Ddelete file
Zcompress file
Mchmod
Ochown
Gchgrp
mmark
uunmark
Uunmark all
grefresh
Asearch
^parent dir
tnew dir
qclose dir

EMACS

HELP:
C-h mcurent mode info
C-h kkey bind info
C-h asearch function
MAIN:
C-x C-cexit
C-/undo
[space] C-/redo
C-x C-bbuffer list
C-g | Esc Esc Esckeyboard quit
C-x bswitch between buffers
C-x C-wsave buffer as
C-x C-fopen file
C-u [nr] [arg]repeat argument [nr] times, default 4 times
SEARCH:
C-ssearch forward
C-rsearch backward
M-%find and repleace
BUFFERS:
C-x C-ssave all buffers
C-x ssave current buffer
C-x kkill buffer
C-x C-bshow buffer menu
BUFFER MENU:
dkill buffer
ssave buffer
xperform previously requested deletions and saves
uundo save and kill
%read only flag
*modify flag
qquit buffer menu
oopen buffer in another window
WINDOWS:
C-x 2horizontal window
C-x 3vertical window
C-x 0remove current window
C-x 1remove all other windows
C-x ochange window
C-x ^taller window
C-x }wider window
EDIT:
C-[space]select
C-[space] [space]unselect
M-wcopy the previously selected
C-wcut the previously selected
C-ypaste
C-a C-kdelete line
C-kdelete from cursor to the end of line
C-h bhelp key bindings
M-;comment/uncomment
M-g ggo to line
C-x r t [string]insert vertical column
C-x kkill region
Alt ;insert comment
C-x r tinsert character at every match line
C-x r kdelete first rectangle at match line(match upto next line field to delete)
INDENT:
C-u [num | -num] C-x [tab]indent previous selected region [num] of lines, minus means indent left
OTHER MODE:
M-x diredfile manager mode
M-x python-modepython mode