Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
marvel
GitHub Repository: marvel/qnf
Path: blob/master/elisp/slime/doc/slime-refcard.tex
990 views
1
\documentclass[a4paper,10pt]{article}
2
3
\usepackage{textcomp}
4
\usepackage{fullpage}
5
\pagestyle{empty}
6
7
8
\newcommand{\group}[1]{\bigskip\par\noindent\textbf{\large#1}\medskip}
9
\newcommand{\subgroup}[1]{\medskip\par\noindent\textbf{#1}\smallskip}
10
\newcommand{\key}[2]{\par\noindent\textbf{#1}\hfill{#2}}
11
\newcommand{\meta}[1]{\textlangle{#1}\textrangle}
12
13
\begin{document}
14
15
\twocolumn[\LARGE\centering{SLIME Quick Reference Card}\vskip1cm]
16
17
\group{Getting help in Emacs}
18
19
\key{C-h \meta{key}}{describe function bound to \meta{key}}
20
\key{C-h b}{list the current key-bindings for the focus buffer}
21
\key{C-h m}{describe mode}
22
\key{C-h l}{shows the keys you have pressed}
23
\key{\meta{key} l}{what starts with \meta{key}}
24
25
\group{Programming}
26
27
\subgroup{Completion}
28
29
\key{M-tab, C-c C-i, C-M-i}{complete symbol}
30
\key{C-c C-s}{complete form}
31
\key{C-c M-i}{fuzzy complete symbol}
32
33
\subgroup{Closure}
34
35
\key{C-c C-q}{close parens at point}
36
\key{C-]}{close all sexp}
37
38
\subgroup{Indentation}
39
40
\key{C-c M-q}{reindent defun}
41
\key{C-M-q}{indent sexp}
42
43
\subgroup{Documentation}
44
45
\key{spc}{insert a space, display argument list}
46
\key{C-c C-d d}{describe symbol}
47
\key{C-c C-f}{describe function}
48
\key{C-c C-d a}{apropos search for regexp}
49
\key{C-c C-d z}{apropos with internal symbols}
50
\key{C-c C-d p}{apropos in package}
51
\key{C-c C-d h}{hyperspec lookup}
52
\key{C-c C-d ~}{format character hyperspec lookup}
53
54
55
\subgroup{Cross reference}
56
57
\key{C-c C-w c}{show function callers}
58
\key{C-c C-w r}{show references to global variable}
59
\key{C-c C-w b}{show bindings of a global variable}
60
\key{C-c C-w s}{show assignments to a global variable}
61
\key{C-c C-w m}{show expansions of a macro}
62
\key{C-c \textless}{list callers of a function}
63
\key{C-c \textgreater}{list callees of a function}
64
65
\subgroup{Finding definitions}
66
67
\key{M-.}{edit definition}
68
\key{M-, or M-*}{pop definition stack}
69
\key{C-x 4 .}{edit definition in other window}
70
\key{C-x 5 .}{edit definition in other frame}
71
72
\newpage
73
74
\subgroup{Macro expansion commands}
75
76
\key{C-c C-m or C-c RET}{macroexpand-1}
77
\key{C-c M-m}{macroexpand-all}
78
\key{C-c C-t}{toggle tracing of the function at point}
79
80
\subgroup{Disassembly}
81
82
\key{C-c M-d}{disassemble function definition}
83
84
\group{Compilation}
85
86
\key{C-c C-c}{compile defun}
87
\key{C-c C-y}{call defun}
88
\key{C-c C-k}{compile and load file}
89
\key{C-c M-k}{compile file}
90
\key{C-c C-l}{load file}
91
\key{C-c C-z}{switch to output buffer}
92
\key{M-n}{next note}
93
\key{M-p}{previous note}
94
\key{C-c M-c}{remove notes}
95
96
\group{Evaluation}
97
98
\key{C-M-x}{eval defun}
99
\key{C-x C-e}{eval last expression}
100
\key{C-c C-p}{eval \& pretty print last expression}
101
\key{C-c C-r}{eval region}
102
\key{C-x M-e}{eval last expression, display output}
103
\key{C-c :}{interactive eval}
104
\key{C-c E}{edit value}
105
\key{C-c C-u}{undefine function}
106
107
\group{Abort/Recovery}
108
109
\key{C-c C-b}{interrupt (send SIGINT)}
110
\key{C-c \~}{sync the current package and working directory}
111
\key{C-c M-p}{set package in REPL}
112
113
\group{Inspector}
114
115
\key{C-c I}{inspect (from minibuffer)}
116
\key{ret}{operate on point}
117
\key{d}{describe}
118
\key{l}{pop}
119
\key{n}{next}
120
\key{q}{quit}
121
\key{M-ret}{copy down}
122
123
\end{document}
124
125