Difference between revisions of "Emacs"

From Coder Merlin
Line 3: Line 3:


== Background ==
== Background ==
'''emacs''' is a powerful text editor and environment that we'll be using heavily throughout our experiences.  You can read more about emacs in this guided tour [https://www.gnu.org/software/emacs/tour/index.html emacs tour] but the best way to learn emacs is just by jumping in to the tutorial.
'''emacs''' is a powerful text editor and environment that we'll be using heavily throughout our experiences.  You can read more about emacs in this guided tour [https://www.gnu.org/software/emacs/tour/index.html emacs tour] but the best way to learn emacs is just by jumping in to the tutorial.  Be very, very thorough!  However, you may safely skip the section titled "Multiple Frames".


{{Caution|
{{Caution|

Revision as of 12:43, 5 July 2019

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

Prerequisites[edit]

Background[edit]

emacs is a powerful text editor and environment that we'll be using heavily throughout our experiences. You can read more about emacs in this guided tour emacs tour but the best way to learn emacs is just by jumping in to the tutorial. Be very, very thorough! However, you may safely skip the section titled "Multiple Frames".

CautionWarnIcon.png
Do not skip this tutorial or skimp on your effort. Learning emacs is essential to doing well and every minute that you invest in learning emacs will pay off a hundred fold.

The Tutorial[edit]

Log on to the server and start emacs:

john-williams@codermerlin:~$  emacs

emacs will start. Read the startup screen closely. It's important to learn to read messages thoroughly; don't skim, read. A careful reading will tell you exactly what you need to do to start the tutorial.

A helpful emacs key reference is available here: Emacs Keys

Hint.pngHelpful Hint

Remember that on the wiki key combinations are displayed as two adjacent keyboard keys, separated by a hyphen. Within the emacs tutorial, a different method is used.

On the Wiki Within emacs Tutorial
CONTROL-h C-h
ALT-x M-x


Hint.pngHelpful Hint

As you work through the tutorial nearly all keys will behave exactly as described, with one notable exception. The tutorial describes the undo command as CONTROL-/. However, for reasons related to the manner in which terminal emulators operate, this key sequence will (probably) not work. The alternative sequence, CONTROL-SHIFT-_ will work. Another alternative, though a bit more cumbersome, is CONTROL-x u.