Skip to content

Instantly share code, notes, and snippets.

@gbaptista
Last active July 27, 2016 03:11
Show Gist options
  • Save gbaptista/355a29ae670c99d076ade63631b0f144 to your computer and use it in GitHub Desktop.
Save gbaptista/355a29ae670c99d076ade63631b0f144 to your computer and use it in GitHub Desktop.
Programming Languages: Emacs Quick Guide
Open/New file: C-x C-f
Save current buffer to a file: C-x s
New sml buffer: C-c C-s
Switch buffers: C-x o
Split window (horizontal): C-x 2
Split window (vertical): C-x 3
Kill sml "session" buffer: C-d
Interrupt sml execution: C-c C-c # (when infinite loop occurs)
# At sml buffer:
Previous line executed: M-p # M = Meta = Alt
Next line executed: M-n # M = Meta = Alt
Awesome refcard: https://www.gnu.org/software/emacs/refcards/pdf/refcard.pdf
# Sml use files:
use "foo.sml"; use "test.sml";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment