Layers are enabled by adding the layer identifier to the
dotspacemacs-configuration-layers variable in the .spacemacs file.
Additional variables can be passed to the layout using the following format:
(layer-identifier :variables variable-one value variable-two value)
identifer: spacemacs-layout
variables:
layouts-enable-autosave (t)
layouts-autosave-delay (300)
identifier: git
identifier: org
variables:
org-enable-github-support (t)
identifier: markdown
identifier: auto-completion
identifier: scala
identifier: rust
identifier: themes-megapack
Configurations reside in the .spacemacs file.
Set first item in dotspacemacs-themes
: sanityinc-tomorrow-night
Resume Layouts (re-load layouts on startup)
dotspacemacs-auto-resume-layouts t
dotspacemacs-line-numbers t
(‘relative for relative line numbers)
In dotspacemacs/user-init:
(setq-default git-magit-status-fullscreen t )
Set Org Workflow Keywords
In dotspacemacs/user-config:
(setq org-todo-keywords
'((sequence " TODO" " IN-PROGRESS" " WAITING" " DONE" )))
Turn truncate lines (word wrap) off
In dotspacemacs/user-config:
(add-hook 'hack-local-variables-hook (lambda () (setq truncate-lines t )))
Prevent Split Line On Create New Heading
In dotspacemacs/user-init:
(setq org-M-RET-may-split-line nil )
h/j/k/l - cursor up/down/left/right
C-u / C-d - move half screen up / down
C-f / C-b - move full screen up / down
” - move cursor to last position
M l/r (arrows) - move occurances of current word
% - move to matching brace
{ / } - move to prev / next paragraph
z t/./b - move screen where cursor is at top/center/bottom
m <key> - set mark to <key>
’ <key> - jump to mark for <key>
S - delete / insert mode all occurances
U - uppercase all occurances
e - move to end of word (E - WORD)
w - move to next word (W - WORD)
b - move back one word (B - WORD)
I - insert beginning of line
o - new line below / insert
O - new line above / insert
ea - append at end of word
xp - transpose two letters (delete + paste)
o - move to other end of marked area
< / > - increase / decrease indention
A - append each selection in block
I - insert each selection in block
R - replace each selection in block
u / U - make lowercase / uppercase
/<pattern> - search for pattern
?<pattern> - search backward for pattern
:%s/old/new/g - replace all old with new
:%s/old/new/gc - replace all w/ confirmation
SPC w c - close current window
SPC w h/j/k/l - move to window
SPC w s - split horizontal
SPC p l - open / create project layer
SPC p f - open file in project
SPC l l - open / create layout
SPC l r - remove buffer from layout
SPC b b - open / create buffer
SPC f E - open file (sudo)
M-RET - open heading below
C-RET - open heading below (after content)
M-o - open sub-heading below
SHIFT <-/-> - cyle prev / next todo
SPC : org-agenda-file-to-front - add file to agenda
SPC : org-remove-file - remove file from agenda
TAB - next field / re-format
SHIFT TAB - prev field / re-format
SPC m t r - recalculate row
SPC : org-table-iterate - recalculate entire table
SPC m b c - compile project
SPC m c c - compile project