Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[10pt,landscape]{article}
- usepackage{multicol}
- usepackage{array}
- newcolumntype{L}{>{ttfamilycolor{red!50}}l}
- usepackage[landscape]{geometry}
- geometry{paperwidth=508mm,paperheight=286mm,top=1cm,left=3cm,right=3cm,bottom=1cm}
- usepackage{xcolor}
- pagecolor{black}
- color{yellow!50}
- makeatletter
- renewcommand{subsection}{@startsection{subsection}{2}{z@}%
- {-3.25ex@plus -1ex @minus -.2ex}%
- {1.5ex @plus .2ex}%
- {normalfontlargebfseriescolor{cyan!75}}}
- makeatother
- setcounter{secnumdepth}{0}
- setlength{parindent}{0pt}
- setlength{parskip}{0pt plus 0.5ex}
- newcommand{textpink}[1]{textcolor{red!50}{texttt{#1}}}
- newcommand{textyellow}[1]{textcolor{yellow!50}{textbf{#1}}}
- begin{document}
- begin{multicols*}{4}
- setlength{premulticols}{1pt}
- setlength{postmulticols}{1pt}
- setlength{multicolsep}{1pt}
- setlength{columnsep}{2pt}
- begin{center}
- color{cyan!75}
- Largetextbf{GNU Emacs Reference Card} \
- normalsize (for version 23)\
- end{center}
- subsection{Starting Emacs}
- To enter GNU Emacs 23, just type its name:quadtextpink{emacs}
- subsection{Leaving Emacs}
- begin{tabular}{@{}p{7cm}L@{}}
- suspend Emacs (or iconify under X) & C-z \
- exit Emacs permanently & C-x C-c \
- end{tabular}
- subsection{Files}
- begin{tabular}{@{}p{7cm}L@{}}
- textbf{read} a file into Emacs & C-x C-f \
- textbf{save} a file back to disk & C-x C-s \
- save textbf{all} files & C-x s \
- insert contents of another file into this buffer & C-x i \
- dots \
- end{tabular}
- subsection{Motion}
- begin{tabular}{@{}p{5.75cm}LL@{}}
- textbf{entity to move over } & textyellow{backward} & textyellow{forward} \
- character & C-b & C-f \
- dots \
- scroll to next screen & multicolumn{2}{c}{textpink{C-v}} \
- dots \
- end{tabular}
- end{multicols*}
- end{document}
- usepackage{xcolor}
- pagecolor{black}
- color{yellow}
- % https://tex.stackexchange.com/a/36457/15717
- definecolor{ttcolor}{RGB}{255,110,120}
- % redefinition of texttt
- letOldtexttttexttt
- renewcommandtexttt[1]{{ttfamilycolor{ttcolor}#1}}
- % redefinition of verb
- makeatletter
- defverb{relaxifmmodehboxelseleavevmodenullfi
- bgroupcolor{ttcolor}
- verb@eol@error letdo@makeother dospecials
- verbatim@font@noligs
- @ifstar@sverb@verb}
- makeatother
- renewcommand{section}{@startsection{section}{1}{0mm}%
- {-1ex plus -.5ex minus -.2ex}%
- {0.5ex plus .2ex}%x
- {normalfontlargebfseriescolor{cyan}}}
- % compile with lualatex
- documentclass[11pt,svgnames]{article}
- usepackage{fixltx2e,fontspec,microtype,multicol,textcomp,xcolor}
- setmainfont[ItalicFont=LucidaBrightOT-Italic.otf,BoldFont=LucidaBrightOT-Demi.otf,BoldItalicFont=LucidaBrightOT-DemiItalic.otf,]{LucidaBrightOT.otf}
- setmonofont[ItalicFont=LucidaSansTypewriterOT-Oblique.otf,StylisticSet=1]{LucidaSansTypewriterOT.otf}
- linespread{1.02}
- usepackage[centering,columnsep=1.5em,margin=1.5em,paperheight=1024pt,paperwidth=1280pt]{geometry}
- definecolor{head}{HTML}{606060}
- % definecolor{head}{HTML}{72B247}
- definecolor{task}{HTML}{255C2A}
- definecolor{command}{HTML}{47B252}
- definecolor{bg}{HTML}{030804}
- setcounter{secnumdepth}{0}
- usepackage[compact,noindentafter]{titlesec}
- titleformat{section}
- {Largebfseriescolor{head}}{thesection}{}{}
- titleformat{subsection}
- {largebfseriescolor{head}}{thesubsection}{}{}
- titleformat{subsubsection}
- {normalsizecolor{head}}{thesubsubsection}{}{}
- setlength{parindent}{0pt}
- setlength{parskip}{1ex plus .2ex minus .2ex}
- newcommand{kbd}[1]{textcolor{command}{texttt{#1}}}
- pagestyle{empty}
- begin{document}
- pagecolor{bg}
- color{task}
- begin{center}
- Hugetextcolor{head}{Emacs Help}
- end{center}
- bigskip
- begin{multicols}{4}
- section{Files}
- save textbf{all} fileshfillkbd{C-x s}\
- replace this file with the file you really wanthfillkbd{C-x C-v}\
- write buffer to a specified filehfillkbd{C-x C-w}\
- toggle read-only status of bufferhfillkbd{C-x C-q}
- section{Buffers}
- select another bufferhfillkbd{C-x b}\
- list all buffershfillkbd{C-x C-b}\
- kill a bufferhfillkbd{C-x k}
- section{Getting Help}
- For the help system, type kbd{C-h} or kbd{F1} and follow the
- directions. For a textbf{tutorial}, type kbd{C-h t}.
- remove help windowhfillkbd{C-x 1}\
- scroll help windowhfillkbd{C-M-v}\
- apropos: show commands matching a stringhfillkbd{C-h a}\
- describe the function a key runshfillkbd{C-h k}\
- describe a functionhfillkbd{C-h f}\
- get mode-specific informationhfillkbd{C-h m}
- subsection{Info}
- enter the Info documentation readerhfillkbd{C-h i}\
- find specified function or variable in Infohfillkbd{C-h S}
- subsubsection{Moving within a node}
- scroll forwardhfillkbd{SPC}\
- scroll reversehfillkbd{DEL}\
- beginning of nodehfillkbd{.} (dot)
- subsubsection{Moving between nodes}
- textbf{next} nodehfillkbd{n}\
- textbf{previous} nodehfillkbd{p}\
- move textbf{up}hfillkbd{u}\
- select menu item by namehfillkbd{m}\
- select textit{n}th menu item by number (1β9)hfillkbd{itshape n}\
- follow cross reference (return with kbd{l})hfillkbd{f}\
- return to last node you sawhfillkbd{l}\
- return to directory nodehfillkbd{d}\
- go to top node of Info filehfillkbd{t}\
- go to any node by namehfillkbd{g}
- subsubsection{Other}
- run Info textbf{tutorial}hfillkbd{h}\
- look up a subject in the indiceshfillkbd{i}\
- search nodes for regexphfillkbd{s}\
- textbf{quit} Infohfillkbd{q}
- section{In the Minibuffer}
- complete as much as possiblehfillkbd{TAB}\
- complete up to one wordhfillkbd{SPC}\
- complete and executehfillkbd{RET}\
- show possible completionshfillkbd{?}\
- fetch previous minibuffer inputhfillkbd{M-p}\
- fetch later minibuffer input or defaulthfillkbd{M-n}\
- regexp search backward through historyhfillkbd{M-r}\
- regexp search forward through historyhfillkbd{M-s}\
- abort commandhfillkbd{C-g}
- Type kbd{C-x ESC ESC} to edit and repeat the last command that
- used the minibuffer.
- section{Error Recovery}
- textbf{abort} partially typed or executing commandhfillkbd{C-g}\
- textbf{recover} files after crashhfillkbd{M-x recover-session}\
- textbf{undo} unwanted changehfillkbd{C-x u}, kbd{C-_} or kbd{C-/}\
- restore original contentshfillkbd{M-x revert-buffer}\
- redraw garbaged screenhfillkbd{C-l}
- section{Motion}
- begin{tabular*}{1linewidth}{@{}l@{extracolsep{fill}}ll@{}}
- bfseries entity to move over & bfseries backward & bfseries forward\
- word & kbd{M-b} & kbd{M-f}\
- line & kbd{C-p} & kbd{C-n}\
- sentence & kbd{M-a} & kbd{M-e}\
- paragraph & kbd{M-{} & kbd{M-}}\
- page & kbd{C-x [} & kbd{C-x ]}\
- sexp & kbd{C-M-b} & kbd{C-M-f}
- end{tabular*}
- scroll lefthfillkbd{C-x <}\
- scroll righthfillkbd{C-x >}
- section{Marking}
- set mark herehfillkbd{C-@} or kbd{C-SPC}\
- exchange point and markhfillkbd{C-x C-x}\
- set mark textit{arg} textbf{words} awayhfillkbd{M-@}\
- mark textbf{paragraph}hfillkbd{M-h}\
- mark textbf{page}hfillkbd{C-x C-p}\
- mark textbf{sexp}hfillkbd{C-M-@}\
- mark textbf{function}hfillkbd{C-M-h}\
- mark entire textbf{buffer}hfillkbd{C-x h}
- section{Killing}
- begin{tabular*}{1linewidth}{@{}l@{extracolsep{fill}}ll@{}}
- bfseries entity to kill & bfseries backward & bfseries forward\
- word & kbd{M-DEL} & kbd{M-d}\
- line (to end of) & kbd{M-0 C-k} & kbd{C-k}\
- sentence & kbd{C-x DEL} & kbd{M-k}\
- sexp & kbd{M-mbox{}- C-M-k} & kbd{C-M-k}\
- end{tabular*}
- kill textbf{region}hfillkbd{C-w}\
- copy region to kill ringhfillkbd{M-w}\
- kill through next occurrence of textit{char}hfillkbd{M-z} textit{char}\
- yank back last thing killedhfillkbd{C-y}\
- replace last yank with previous killhfillkbd{M-y}
- section{Spelling}
- check current wordhfillkbd{M-$}
- section{Transposing}
- transpose textbf{characters}hfillkbd{C-t}\
- transpose textbf{words}hfillkbd{M-t}\
- transpose textbf{lines}hfillkbd{C-x C-t}\
- transpose textbf{sexps}hfillkbd{C-M-t}
- section{Incremental Search}
- search forwardhfillkbd{C-s}\
- search backwardhfillkbd{C-r}\
- regular expression searchhfillkbd{C-M-s}\
- reverse regular expression searchhfillkbd{C-M-r}\
- select previous search stringhfillkbd{M-p}\
- select next later search stringhfillkbd{M-n}\
- exit incremental searchhfillkbd{RET}\
- undo effect of last characterhfillkbd{DEL}\
- abort current searchhfillkbd{C-g}
- Repeat kbd{C-s} or kbd{C-r} to repeat the search. If Emacs is still
- searching, kbd{C-g} cancels only the part not matched.
- section{Query Replace}
- interactively replace a text stringhfillkbd{M-%}\
- using regular expressionshfillkbd{C-M-%}
- Valid responses are:
- textbf{replace} this one, go on to nexthfillkbd{SPC}\
- replace this one, donβt movehfillkbd{,}\
- textbf{skip} to next without replacinghfillkbd{DEL}\
- replace all remaining matcheshfillkbd{!}\
- textbf{back up} to the previous matchhfillkbd{^{}}\
- textbf{exit} query-replacehfillkbd{RET}\
- enter recursive edit (kbd{C-M-c} to exit)hfillkbd{C-r}
- section{Regular Expressions}
- any single character except a newlinehfillkbd{.} (dot)\
- zero or more repeatshfillkbd{*}\
- one or more repeatshfillkbd{+}\
- zero or one repeathfillkbd{?}\
- quote regular expression special character textit{c}hfillkbd{textbackslashitshape c}\
- alternative (βorβ)hfillkbd{textbackslash|}\
- groupinghfillkbd{textbackslash( ... )}\
- same text as textit{n}th grouphfillkbd{textbackslashitshape n}\
- at word breakhfillkbd{textbackslash b}\
- not at word breakhfillkbd{textbackslash B}
- begin{tabular*}{1linewidth}{@{}l@{extracolsep{fill}}ll@{}}
- bfseries entity & bfseries match start & bfseries match end\
- line & kbd{^{}} & kbd{$}\
- word & kbd{<} & kbd{>}\
- buffer & kbd{`} & kbd{'}\[.5ex]
- bfseries class of characters & bfseries match these & bfseries match others\
- explicit set & kbd{[ ... ]} & kbd{[^{} ... ]}\
- word-syntax character & kbd{w} & kbd{W}\
- character with syntax textit{c} & kbd{s}textit{c} & kbd{S}textit{c}
- end{tabular*}
- section{Tags}
- find a tag (a definition)hfillkbd{M-.}\
- find next occurrence of taghfillkbd{C-u M-.}\
- specify a new tags filehfillkbd{M-x visit-tags-table}\
- regexp search all files in tags tablehfillkbd{M-x tags-search}\
- query-replace in the fileshfillkbd{M-x tags-query-replace}\
- continue last tags search or query-replacehfillkbd{M-,}
- section{Formatting}
- indent current textbf{line} (mode-dependent)hfillkbd{TAB}\
- indent textbf{region} (mode-dependent)hfillkbd{C-M-textbackslash}\
- indent textbf{sexp} (mode-dependent)hfillkbd{C-M-q}\
- indent region rigidly textit{arg} columnshfillkbd{C-x TAB}\
- move rest of line vertically downhfillkbd{C-M-o}\
- delete blank lines around pointhfillkbd{C-x C-o}\
- join line with previous (with arg, next)hfillkbd{M-^{}}\
- delete all white space around pointhfillkbd{M-textbackslash}\
- set fill column to textit{arg}hfillkbd{C-x f}\
- set prefix each line starts withhfillkbd{C-x .}\
- set facehfillkbd{M-o}
- section{Case Change}
- uppercase wordhfillkbd{M-u}\
- lowercase wordhfillkbd{M-l}\
- capitalize wordhfillkbd{M-c}\
- uppercase regionhfillkbd{C-x C-u}\
- lowercase regionhfillkbd{C-x C-l}
- section{Rectangles}
- copy rectangle to registerhfillkbd{C-x r r}\
- kill rectanglehfillkbd{C-x r k}\
- yank rectanglehfillkbd{C-x r y}\
- open rectangle, shifting text righthfillkbd{C-x r o}\
- blank out rectanglehfillkbd{C-x r c}\
- prefix each line with a stringhfillkbd{C-x r t}
- section{Multiple Windows}
- When two commands are shown, the second is a similar command for a
- frame instead of a window.
- begin{tabular*}{1linewidth}{@{}l@{extracolsep{fill}}ll@{}}
- delete all other windows & kbd{C-x 1} & kbd{C-x 5 1}\
- split window, above and below & kbd{C-x 2} & kbd{C-x 5 2}\
- delete this window & kbd{C-x 0} & kbd{C-x 5 0}
- end{tabular*}
- split window, side by sidehfillkbd{C-x 3}\
- scroll other windowhfillkbd{C-M-v}
- begin{tabular*}{1linewidth}{@{}l@{extracolsep{fill}}ll@{}}
- switch cursor to another window & kbd{C-x o} & kbd{C-x 5 o}\
- select buffer in other window & kbd{C-x 4 b} & kbd{C-x 5 b}\
- find file in other window & kbd{C-x 4 f} & kbd{C-x 5 f}\
- find file read-only in other window & kbd{C-x 4 r} & kbd{C-x 5 r}\
- run Dired in other window & kbd{C-x 4 d} & kbd{C-x 5 d}\
- find tag in other window & kbd{C-x 4 .} & kbd{C-x 5 .}
- end{tabular*}
- grow window tallerhfillkbd{C-x ^{}}\
- shrink window narrowerhfillkbd{C-x {}\
- grow window widerhfillkbd{C-x }}
- section{Shells}
- execute a shell commandhfillkbd{M-!}\
- run a shell command on the regionhfillkbd{M-|}\
- filter region through a shell commandhfillkbd{C-u M-|}\
- start a shell in window kbd{*shell*}hfillkbd{M-x shell}
- section{Abbrevs}
- add global abbrevhfillkbd{C-x a g}\
- add mode-local abbrevhfillkbd{C-x a l}\
- add global expansion for this abbrevhfillkbd{C-x a i g}\
- add mode-local expansion for this abbrevhfillkbd{C-x a i l}\
- explicitly expand abbrevhfillkbd{C-x a e}\
- expand previous word dynamicallyhfillkbd{M-/}
- section{Registers}
- save region in registerhfillkbd{C-x r s}\
- insert register contents into bufferhfillkbd{C-x r i}\
- save value of point in registerhfillkbd{C-x r SPC}\
- jump to point saved in registerhfillkbd{C-x r j}
- section{Keyboard Macros}
- textbf{start} defining a keyboard macrohfillkbd{C-x (}\
- textbf{end} keyboard macro definitionhfillkbd{C-x )}\
- textbf{execute} last-defined keyboard macrohfillkbd{C-x e}\
- append to last keyboard macrohfillkbd{C-u C-x (}\
- name last macrohfillkbd{M-x name-last-kbd-macro}\
- insert definition in bufferhfillkbd{M-x insert-kbd-macro}
- end{multicols}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement