sly-refcard.tex (3063B)
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{SLY 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{C-c tab}{complete symbol} 30 31 \subgroup{Closure} 32 33 \key{C-c C-q}{close parens at point} 34 \key{C-]}{close all sexp} 35 36 \subgroup{Indentation} 37 38 \key{C-c M-q}{reindent defun} 39 \key{C-M-q}{indent sexp} 40 41 \subgroup{Documentation} 42 43 \key{spc}{insert a space, display argument list} 44 \key{C-c C-d C-d}{describe symbol} 45 \key{C-c C-d C-f}{describe function} 46 \key{C-c C-d C-a}{apropos search for regexp} 47 \key{C-c C-d C-z}{apropos with internal symbols} 48 \key{C-c C-d C-p}{apropos in package} 49 \key{C-c C-d C-h}{hyperspec lookup} 50 \key{C-c C-d C-\~}{format character hyperspec lookup} 51 52 53 \subgroup{Cross reference} 54 55 \key{C-c C-w C-c}{show function callers} 56 \key{C-c C-w C-r}{show references to global variable} 57 \key{C-c C-w C-b}{show bindings of a global variable} 58 \key{C-c C-w C-s}{show assignments to a global variable} 59 \key{C-c C-w C-m}{show expansions of a macro} 60 \key{C-c \textless}{list callers of a function} 61 \key{C-c \textgreater}{list callees of a function} 62 63 \subgroup{Finding definitions} 64 65 \key{M-.}{edit definition} 66 \key{M-, or M-*}{pop definition stack} 67 \key{C-x 4 .}{edit definition in other window} 68 \key{C-x 5 .}{edit definition in other frame} 69 70 \newpage 71 72 \subgroup{Macro expansion commands} 73 74 \key{C-c C-m or C-c RET}{macroexpand-1} 75 \key{C-c M-m}{macroexpand-all} 76 \key{C-c C-t}{toggle tracing of the function at point} 77 78 \subgroup{Disassembly} 79 80 \key{C-c M-d}{disassemble function definition} 81 82 \group{Compilation} 83 84 \key{C-c C-c}{compile defun} 85 \key{C-c C-y}{call defun} 86 \key{C-c C-k}{compile and load file} 87 \key{C-c M-k}{compile file} 88 \key{C-c C-l}{load file} 89 \key{C-c C-z}{switch to output buffer} 90 \key{M-n}{next note} 91 \key{M-p}{previous note} 92 \key{C-c M-c}{remove notes} 93 94 \group{Evaluation} 95 96 \key{C-M-x}{eval defun} 97 \key{C-x C-e}{eval last expression} 98 \key{C-c C-p}{eval \& pretty print last expression} 99 \key{C-c C-r}{eval region} 100 \key{C-x M-e}{eval last expression, display output} 101 \key{C-c :}{interactive eval} 102 \key{C-c E}{edit value} 103 \key{C-c C-u}{undefine function} 104 105 \group{Abort/Recovery} 106 107 \key{C-c C-b}{interrupt (send SIGINT)} 108 \key{C-c \~}{sync the current package and working directory} 109 \key{C-c M-p}{set package in REPL} 110 111 \group{Inspector} 112 113 \key{C-c I}{inspect (from minibuffer)} 114 \key{ret}{operate on point} 115 \key{d}{describe} 116 \key{l}{pop} 117 \key{n}{next} 118 \key{q}{quit} 119 \key{M-ret}{copy down} 120 121 \end{document}