m (Abbrevs)
m (Registers)
Line 18: Line 18:
 
<poem>
 
<poem>
 
* text register
 
* text register
C-x r s a store region as “a”
+
C-x r s a | store region as “a”
C-x r i a insert region stored in “a”
+
C-x r i a | insert region stored in “a”
C-x r r a store rectangle as “a”
+
C-x r r a | store rectangle as “a”
  
 
* point register
 
* point register
C-x r SPC a store current point as “a”
+
C-x r SPC a | store current point as “a”
C-x r j a move to point in “a”
+
C-x r j a | move to point in “a”
  
 
* window register
 
* window register
C-x r w a store configuration of windows in frame
+
C-x r w a | store configuration of windows in frame
C-x r j a restore window configurations
+
C-x r j a | restore window configurations
  
 
* frame register
 
* frame register
C-x r f a store window configuration for all frames
+
C-x r f a | store window configuration for all frames
C-x r j a restore all window configurations
+
C-x r j a | restore all window configurations
  
 
* number register
 
* number register
C-u 1 C-x r n a store 1 in “a”
+
C-x r N        | insert a column of numbers from 1 to N
C-u 1 C-x r + a add 1 to number in “a”
+
C-u 1 C-x r n a | store 1 in “a”
C-x r i a insert number 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
 
* position register
C-x r m RET save default
+
C-x r m RET | save default
C-x r m <NAME> RET save as NAME
+
C-x r m <NAME> RET | save as NAME
C-x r b RET move to default
+
C-x r b RET move to | default
C-x r b <NAME> RET move to NAME
+
C-x r b <NAME> RET | move to NAME
 
C-x r l list
 
C-x r l list
 
</poem>
 
</poem>

Revision as of 10:36, 19 January 2019

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

Registers

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-x r N | insert a column of numbers from 1 to N
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

.emacs

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

Abbrevs

My Emacs-abbrevs file.

Links