m
m (Useful)
Line 14: Line 14:
 
* Register: (see [http://www.emacswiki.org/emacs/Registers])
 
* Register: (see [http://www.emacswiki.org/emacs/Registers])
  
: C-x r s R Copy the region into register R
+
<poem>
: C-x r r R Copy the region-rectangle into register R
+
text register
: C-x r SPC R Save the position of point (and the name of the current buffer) into register R
+
C-x r s a store region as “a”
: C-x r f R Copy the frame configuration into register R
+
C-x r i a insert region stored in “a”
: C-x r w R Copy the window configuration into register R
+
C-x r r a store rectangle as “a”
 +
point register
 +
C-x r SPC a store current point as “a”
 +
C-x r j a move to point in “a”
 +
window register
 +
C-x r w a store configuration of windows in frame
 +
C-x r j a restore window configurations
 +
frame register
 +
C-x r f a store window configuration for all frames
 +
C-x r j a restore all window configurations
 +
number register
 +
C-u 1 C-x r n a store 1 in “a”
 +
C-u 1 C-x r + a add 1 to number in “a”
 +
C-x r i a insert number in “a”
 +
position register
 +
C-x r m RET save default
 +
C-x r m <NAME> RET save as NAME
 +
C-x r b RET move to default
 +
C-x r b <NAME> RET move to NAME
 +
C-x r l list
 +
</poem>
  
<i>R</i> is the register name that you choose, consisting of a single character. Register names are case-sensitive.  
+
<i>R</i> is the register name that you choose, consisting of a single character. Register names are case-sensitive.
  
 
== .emacs ==
 
== .emacs ==

Revision as of 14:02, 27 March 2014

Emacs logo.png

Contents

Emacs

Emacs is the most powerful text editor.

It is so powerful that you cannot limit it to this task alone; removing "text" in the above statement gives a better idea of what Emacs is.

It is one of the big marvels of computer codes, along with Unix, $\mathrm{\TeX}$ and others. Stallman wrote the popular GNU version in 1984 and it is still actively maintained as of today and will hopefully remain so forever. This is the real jewel.

The XEmacs branch, from the flamboyant Jamie Zawinski, was one of the earliest forking process in the computer software industry. It's without any doubt the version to use in the DNA lounge.

Useful

  • Register: (see [1])

text register
C-x r s a store region as “a”
C-x r i a insert region stored in “a”
C-x r r a store rectangle as “a”
point register
C-x r SPC a store current point as “a”
C-x r j a move to point in “a”
window register
C-x r w a store configuration of windows in frame
C-x r j a restore window configurations
frame register
C-x r f a store window configuration for all frames
C-x r j a restore all window configurations
number register
C-u 1 C-x r n a store 1 in “a”
C-u 1 C-x r + a add 1 to number in “a”
C-x r i a insert number in “a”
position register
C-x r m RET save default
C-x r m <NAME> RET save as NAME
C-x r b RET move to default
C-x r b <NAME> RET move to NAME
C-x r l list

R is the register name that you choose, consisting of a single character. Register names are case-sensitive.

.emacs

My dot-emacs configuration file: .emacs.zip.

Links