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

Intro to Emacs

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

Intro to Emacs

Avatar for Brian Auton

Brian Auton

April 06, 2016

Other Decks in Programming

Transcript

  1. Should you use it? • Maybe. • Some acclimation required

    • Does it feel faster? • Does it feel more transparent?
  2. Should you try it? • Definitely! • Unique solution, solid

    and extensible • Learn a new language, if you want (Emacs Lisp) • Part of computing history
 Lisp Machine era, 1976
 Stallman / first GNU application
  3. Graphical vs Text Mode • Graphical: native app • Text:

    runs in terminal
 I prefer it (easy access to shell with Ctrl-Z)
  4. Installation Steps • OSX: brew install emacs —cocoa —srgb •

    Linux:
 apt-get install emacs
 apt-get install emacs-nox • Windows: https://ftp.gnu.org/gnu/emacs/windows/
  5. Editing with Emacs • EMACS = “Editor MACroS” • Does

    the basics well • Non-modal UI • Learn the few essential commands
 Don’t be overwhelmed by long cheat sheets
  6. Keys I use • Arrow keys, C-a, C-e, C-v, M-v,

    C-<, C-> • Search: C-s, M-% • Undo: C-/ • Files: C-x C-f, C-x C-s • Buffers: C-x left, C-x right, C-x b • Kill and Yank: C-k, C-y • Other: Tab, C-g, C-z, M-x • Quit: C-x C-c
  7. Keys I use • Arrow keys, C-a, C-e, C-v, M-v,

    C-<, C-> • Search: C-s, M-% • Undo: C-/ • Files: C-x C-f, C-x C-s • Buffers: C-x left, C-x right, C-x b • Kill and Yank: C-k, C-y • Other: Tab, C-g, C-z, M-x • Quit: C-x C-c
  8. Customization • Config file: .emacs or .emacs.d/init.el • Elisp: Emacs

    Lisp • Browse sample config files online for inspiration
  9. Packages • Repositories: ELPA (built-in), MELPA (requires extra config) •

    M-x package-list-packages
 M-x package-install • Some essential packages:
 color-theme
 haml-mode
 flycheck • Others:
 robe
 org-mode