Last active
August 22, 2017 13:25
-
-
Save BernardNotarianni/c7ab1a1cea7b6f0d2976 to your computer and use it in GitHub Desktop.
Spacemacs Cheat Sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[10pt,landscape]{article} | |
\usepackage{multicol} | |
\usepackage{calc} | |
\usepackage{ifthen} | |
\usepackage[landscape]{geometry} | |
\usepackage{hyperref} | |
% based on latex cheat sheet https://wch.github.io/latexsheet/ | |
% | |
% To make this come out properly in landscape mode, do one of the following | |
% 1. | |
% pdflatex latexsheet.tex | |
% | |
% 2. | |
% latex latexsheet.tex | |
% dvips -P pdf -t landscape latexsheet.dvi | |
% ps2pdf latexsheet.ps | |
% This sets page margins to .5 inch if using letter paper, and to 1cm | |
% if using A4 paper. (This probably isn't strictly necessary.) | |
% If using another size paper, use default 1cm margins. | |
\ifthenelse{\lengthtest { \paperwidth = 11in}} | |
{ \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} } | |
{\ifthenelse{ \lengthtest{ \paperwidth = 297mm}} | |
{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } | |
{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } | |
} | |
% Turn off header and footer | |
\pagestyle{empty} | |
% Redefine section commands to use less space | |
\makeatletter | |
\renewcommand{\section}{\@startsection{section}{1}{0mm}% | |
{-1ex plus -.5ex minus -.2ex}% | |
{0.5ex plus .2ex}%x | |
{\normalfont\large\bfseries}} | |
\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}% | |
{-1explus -.5ex minus -.2ex}% | |
{0.5ex plus .2ex}% | |
{\normalfont\normalsize\bfseries}} | |
\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}% | |
{-1ex plus -.5ex minus -.2ex}% | |
{1ex plus .2ex}% | |
{\normalfont\small\bfseries}} | |
\makeatother | |
% Define BibTeX command | |
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em | |
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} | |
% Don't print section numbers | |
\setcounter{secnumdepth}{0} | |
\setlength{\parindent}{0pt} | |
\setlength{\parskip}{0pt plus 0.5ex} | |
% ----------------------------------------------------------------------- | |
\begin{document} | |
\raggedright | |
\footnotesize | |
\begin{multicols*}{3} | |
% multicol parameters | |
% These lengths are set only within the two main columns | |
%\setlength{\columnseprule}{0.25pt} | |
\setlength{\premulticols}{1pt} | |
\setlength{\postmulticols}{1pt} | |
\setlength{\multicolsep}{1pt} | |
\setlength{\columnsep}{2pt} | |
\begin{center} | |
\Large{Spacemacs Cheat Sheet} \\ | |
\end{center} | |
\section{Files} | |
\begin{tabular}{@{}ll@{}} | |
\verb!SPC f f! & Open file \\ | |
\verb!SPC f s! & Save file \\ | |
\verb!SPC f r! & Open recent file \\ | |
\verb!SPC f R! & Rename current file \\ | |
\verb!SPC f S! & Save all files \\ | |
\verb!SPC f D! & Delete file and buffer \\ | |
\end{tabular} | |
\section{Buffers} | |
\begin{tabular}{@{}ll@{}} | |
\verb!SPC TAB! & Switch to alternate buffer\\ | |
\verb!SPC b b! & Switch to buffer\\ | |
\verb!SPC b k! & Kill buffer\\ | |
\verb!SPC b K! & Kill all other buffers\\ | |
\verb!SPC b m [hjkl]! & Move buffer\\ | |
\verb!SPC b M! & Swap buffer \\ | |
\verb!SPC b w! & Toggle read-only\\ | |
\end{tabular} | |
\section{Windows} | |
\begin{tabular}{@{}ll@{}} | |
\verb!SPC w -! & Split window horizontally \\ | |
\verb!SPC w v! & Split window vertically \\ | |
\verb!SPC w c! & Delete window\\ | |
\verb!SPC w [1-9]! & Move to window n\\ | |
\end{tabular} | |
\section{Move} | |
\begin{tabular}{@{}ll@{}} | |
\verb!SPC SPC! & Ace jump word mode\\ | |
\verb!SPC l ! & Ace jump line mode\\ | |
\verb!SPC ` ! & Go back to previous location\\ | |
\end{tabular} | |
\section{Search} | |
\begin{tabular}{@{}ll@{}} | |
\verb!/ ! & Search \\ | |
\end{tabular} | |
\end{multicols*} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment