„Freiheit oder Tod“
March 11th, 2010 Posted in Uncategorized | Comments Off
 
Emacs is a complex editor with a hard learning curve and I refused to learn anything of it because I came along with other editors like nedit, scite, gedit etc…but now I am coding in clojure and due to its lisp nature you have a lot of parens and if your editor can’t match them accordingly you are almost lost in your code.

YES, gedit can highlight and match your parens but it does it in a strange way; strange enough you still can’t figure out to what parenthesis it belongs…it’s just odd with gedit. But gedit also has no clojure highlightening and none for lisp, too…

Scite and nedit are fine but due to the fact that there is already a clojure-mode for emacs I tried to learn at least the basics of emacs.

I watched the movie at peepcode and I came to the following key combinations that are enough for me right now:

C-x M-fopen a file in a new buffer
C-x C-f open a file/buffer
C-x s save a file/buffer
C-x k kill a buffer
C-x O switch between open buffers
C-x b select buffer from a list
C-f move one char forward
C-b move one char backwards
M-f move one word forward
M-b move one word backwards
Highlight a region:
C-Spacepress key down as long as you want to select the area.
C-gclears the selection.
C-w kill a region
C-y paste back the killed region
C-k delete a line
C-M-h kill previous word
M-w copy regions content to the kill ring
C-_ Undo
M-x shell start a shell
C-x 3 split horizontal
C-x 2 split vertical
C-x C-c quit emacs