Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Haskell Workshop: Pimp My Emacs

Kat Chuang
January 29, 2014

Haskell Workshop: Pimp My Emacs

An introduction to emacs customizations, presented at The Haskell Workshop

Kat Chuang

January 29, 2014
Tweet

More Decks by Kat Chuang

Other Decks in Technology

Transcript

  1. Started from the bottom now we’re here. Shopping for a

    new editor this year. Much sublime, wow, very design! No integration? I resign. Emacs is divine? Let’s make shine! Quick Rap
  2. Haskell Workshop Today’s Topics: ➢ Why emacs? ➢ Intro ➢

    Installation & set up ➢ Keyboard Bindings ➢ Customizations ➢ Installing modes
  3. Why emacs? ➢ Indent with ease ➢ Multiple buffers ➢

    Smooth workflow ➢ Customization encouraged
  4. Installing with brew $ brew install emacs $ ln -s

    /usr/local/Cellar/emacs/24.3/ Emacs.app/Applications $ emacs you might have older version, $ sudo rm /usr/bin/emacs $ sudo rm -rf /usr/share/emacs http://wikemacs.org/index.php/Installing_Emacs_on_OS_X (Text version, you might not like it.)
  5. How to read key bindings C-x C-f Ctrl + x

    hold control f C-b b Ctrl + b release b
  6. C-x C-f open file C-x C-s save C-x C-w cut

    C-y paste C-/ undo C-x C-c quit editor Editing Commands C-b move 1 letter back M-b move 1 word back ← back → forward next prev C-a move 1 sentence ← a beginning → end C-v move 1 page M-< move to first letter M-> move to last letter
  7. Buffer commands C-x 2 Split vertical C-x b Switch buffer

    C-x 0 Close this C-x 1 Close all others
  8. How to install modes 1. Install Melpa 2. M-x list-packages

    3. i (to select) 4. x (to execute) 5. Start the mode with M-x <package name>