Skip to content

sabu36/quickstart-emacs-slime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Basic emacs commands

On my computer:

  • C = Ctrl
  • M (meta) = Alt

Maybe try the commands on an existing file.

description emacs command mnemonic vim command
undo C-_ u
abort any command C-g
save C-x-s :w
shell command M-! :!
movement
move by word M-b, M-f "b"ackward, "f"orward b, w
end of line C-a, C-e 0, $
move by expression C-M-b, C-M-f
move by function C-M-a, C-M-e
center screen around cursor C-l zz
line# M-g-g <number> <number>gg
editing
newline without reindent M-j Ret
insert newline C-M-o, C-o "o"pen O, o
cut line M-Sft-Bsp dd
cut word M-Bsp, M-d db, dw
cut to end C-k d$
start selection C-Spc (or C-@) v
reindent selection C-x Tab >>, <<
cut selection C-w d
copy selection M-w y
paste C-y "y"ank back p
search
search and move C-r, C-s / ⇒ N, n
search and replace (to end of file) M-% (or Esc-%) :%s/<srch>/<rpl>/gc
replace ,
next Bsp
multiple windows
split side by side C-x 3 :vsp
switch C-x o "o"ther C-w-w
close C-x 0 :q

Slime (plugin for Common Lisp)

To install on linux:
sudo apt-get install slime cl-swank

To make slime use Clozure, in ccl:

? (load "path/to/ergolib/init")  ; enable quicklisp 
…
? (require :ql)
…
? (ql:quickload :quicklisp-slime-helper)

then follow the instruction at the end of output.

To enter slime in emacs: M-x slime

To send a function from editor to repl: C-c-c

To see function definition from repl: M-. (called meta-point)
To go back: M-,

About

Just the basics to get started

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published