The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Emacs crash course

    Discussion in 'Linux Compatibility and Software' started by wearetheborg, Jun 20, 2008.

  1. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    Code:
    emacs -nw 
    makes it run in the terminal (if you dont want to launch the X application.
    CTRL-x CTRL-s (Hold CTRL then press x and then s) saves the file.
    CTRL-x CTRL-c quits the program
    CTRL-s for search
    CTRL-k for killing (deleting) current line
    CTRL-y for putting back killed line
    CTRL-e for moving to end of line
    CTRL-a for moving to beginning of line.

    backspace and delete keys do as expected. up/down/left/right arrows move the cursor.
    That should get people started :D
    No modes to worry about.

    Want to try something fun ? :D Try this
    Open a file (new or exsisting) "foo"
    Code:
    emacs -nw foo
    
    Now type this:
    CTRL-x 3 (CTRL-x follwed by 3)
    Now type something
    Then type CTRL-x o (o is the lettttttttter not 0 the number) CTRL-x followed by the leter o; and see what happens to the cursor. Type some more.
    Type CTRL-x o again Type something.
    Now type CTRL-x 1 (1 is the number).
    Type some more
    Exit: CTRL-x CTRL-c
     
  2. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    Does anyone know how much of Vim's featureset is covered by Emacs's viper mode? I'm interested in using Emacs as an IDE (as a replacement for Eclipse for Java programming), but I need vi-style editing. If I can really get all the vi shortcuts/features in Emacs, I might switch.
     
  3. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206