cursor movement
C-f | forward one character
C-b | backward one character
C-n | forward one line
C-p | backward one line
Slide 8
Slide 8 text
cursor movement
C-a | beginning of line
C-e | end of line
!
Shift-Meta-> | end of file
Shift-Meta-< | beginning of file
Slide 9
Slide 9 text
cursor movement
C-a | beginning of line
C-e | end of line
!
Shift-Meta-> | end of file
Shift-Meta-< | beginning of file
!
C-SPACE | set/unset mark
(selection)
Slide 10
Slide 10 text
cursor movement
C-r | isearch-backward-regexp
C-s | isearch-forward-regexp
Slide 11
Slide 11 text
Editing
Slide 12
Slide 12 text
editing
C-w | kill (cut)
M-w | copy
C-y | paste
C-k | kill until the
end of the line
Slide 13
Slide 13 text
Finding out stuff
Slide 14
Slide 14 text
finding out stuff
emacs -nw --debug-init
!
describe-key
describe-function
Slide 15
Slide 15 text
File navigation
Slide 16
Slide 16 text
file navigation
C-x C-f | open file
C-x C-s | save file
C-x C-b | list buffers
C-x b | switch to buffer
yasnippet
YASnippet is a template system for Emacs. It
allows you to type an abbreviation and
automatically expand it into function templates.
!
Saves you some typing by providing expandable
shortcuts for common functions / patterns.
!
Slide 25
Slide 25 text
undo-tree-visualise
Slide 26
Slide 26 text
expand-region
Slide 27
Slide 27 text
expand-region
(global-unset-key (kbd "C-c C-w"))!
(global-set-key (kbd "C-c C-w") 'er/expand-region)!
!
Expand region increases the selected region by
semantic units. Just keep pressing the key until
it selects what you want.
!
Slide 28
Slide 28 text
multiple-cursors
Slide 29
Slide 29 text
multiple-cursors
Multiple cursors for Emacs.
!
http://emacsrocks.com/e13.html
Slide 30
Slide 30 text
textmate-mode
Slide 31
Slide 31 text
textmate-mode
Basic emulation of Textmate features
textmate-goto-file
textmate-goto-symbol
goto-line
textmate-shift-left
textmate-shift-right
comment-or-uncomment-region-or-
line
Slide 32
Slide 32 text
clojure
Slide 33
Slide 33 text
clojure
Cider
function signature lookup
cider-jack-in
C-c C-k | compile
C-c M-n | load current ns
C-c C-. | run tests in file
M-. | jump to def
align-cljlet
Slide 34
Slide 34 text
clojure
C-c C-p | eval the form preceding
point
C-c C-b | interrupt
C-c M-m | macroexpand-all
C-c C-n | Eval the ns form
Slide 35
Slide 35 text
haskell
Slide 36
Slide 36 text
haskell
C-c C-c | compile
Slide 37
Slide 37 text
magit
Slide 38
Slide 38 text
magit
M-x magit-status
s | stage
u | unstage
1/2/3/r | show more details
c c | commit