Difference between revisions of "Emacs"

From Coder Merlin
Line 1: Line 1:
== Temporary Files ==
Emacs creates two types of files for your benefit, automatically.
=== Backup Files ===
Backup files are created automatically whenever you save a file.  This enables you to easily go back to an older version if necessary.  The backup file is named the same as your original file but with a tilde (~) as a suffix.  If you're certain that you don't need the backup file it may safely be deleted (though it's probably better to simply ignore it).
=== Auto-Save Files ===
Emacs automatically saves your files periodically so in case of an unexpected event (e.g. emacs crashes) your file can still be recovered.  The auto-save file is named the same as your original file but with a leading and trailing number sign (#).  In the event of a crash, the file may be recovered by opening your original file and then executing {{SpecialKey|ALT|x}} '''recover-file'''.  Emacs will notify you if it detects a file in this state.  In general, emacs will automatically delete these files when it cleanly exits.
== How to Perform Common Tasks ==
== How to Perform Common Tasks ==
* [[Emacs-HowToCopyFromOneFileToAnother|How to Copy from One File to Another]]
* [[Emacs-HowToCopyFromOneFileToAnother|How to Copy from One File to Another]]

Revision as of 16:53, 13 December 2021

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

How to Perform Common Tasks[edit]

Emacs for Essays[edit]

ComingSoonIcon.png
Coming Soon
  • Setting fill column
  • Setting auto fill
  • Don't use carriage-returns within a paragraph
  • Use two carriage-returns between paragraphs
  • Spell check
  • Word count
  • Tagging

Exercises[edit]

ExercisesExercisesIcon.png

After completing W1008:

  •  M1004-10  Complete  Merlin Mission Manager  Mission M1004-10.

Excursions[edit]

Excursions101 138 Boeheimkirchen 070430.jpg
  • Using emacs navigation commands (including CONTROL-U), produce an ASCII art image at least forty characters wide and twenty-four characters high. Save your image to a file at the path ~/Experiences/W1004/art.txt.
  • Repeat the above process adding several new images below the first to form a vertical comic strip.
  • References: ASCII art (Wikipedia)


Experience Metadata

Experience ID W1004
Next experience ID
Unit Lab basics
Knowledge and skills §10.121
§10.212
Topic areas Emacs
Classroom time 45 minutes
Study time 4 hours240 minutes <br />
Acquired knowledge understanding that documents are preserved in files
understanding the difference between document files and temporary files
Acquired skill starting, stopping, and suspending emacs
creating a new file, opening an existing file, saving modifications to a file
navigating forward and backward through a file by character, word, sentence, and line
navigating to the start and end of the document
searching for text incrementally (forwards and backwards)
marking a region of text and cutting, copying, and pasting text
Additional categories