spc b b
spc b [n]
spc b e
spc b d
spc b n
spc b p
spc b R
spc c l
space c y
spc c P
spc e l
spc e n
spc e p
spc f f
spc f l
spc f s
spc f i
spc f r
spc f c
spc f D
spc f s
spc f S
spc f t
spc j j
spc j w
spc j l
spc j i
spc j I
spc j q
[e
]e
[SPC
]SPC
[p
]p
spc spc
spc s s
spc s p
spc s f
spc s b
spc s S
spc p t
spc p p
spc p d
spc p '
spc p R
spc p l
spc p v
spc v
spc w /
spc [n]
spc w { or }
spc w [ or ]
spc w M
spc w r
spc w R
spc w +
spc w v
spc m G e
spc m g g
spc m g G
spc m h f
ctrl u
ctrl d
ctrl f
ctrl b
g e
w
b
e
300G
shift }
shift {
fp
Fp
tp
/
?
gg
G
zz
zt
ctrl y
ctrl e
z b
H
M
L
0
$
m m
` m
ctrl-r
''
.
3>>
<<
^
%
c2w
~
x
X
cw
d
dt.
df.
P
p
O
o
s
S
I
A
shift x
shift o
yy
y
Y
cc
cit
ci(
ciw
dd
J
daw
diw
dip
dap
ds(
cs(
ds(
dip
r
R
0D
^D
:noh
vip
vap
install haskell-ide-engine and ghcide
stack install hlint brittanny hoogle
use spacemacs develop branch (checkout ~/.emacs.d to develop)
(defun dotspacemacs/layers ()
(setq-default
dotspacemacs-configuration-layers
'(
...
(reasonml :variables reason-auto-refmt t)
lsp
(haskell :variables
haskell-completion-backend 'lsp
)
...)
)
)
(defun dotspacemacs/user-config ()
(setq lsp-haskell-process-args-hie '("exec" "ghcide" "--" "--lsp")
lsp-haskell-process-path-hie "stack"
lsp-haskell-process-wrapper-function (lambda (argv) (cons (car argv) (cddr argv)))
)
(add-hook 'haskell-mode-hook
#'lsp)
)
for the reasonml layer to work install ocaml compiler version which exactly matches the ocaml version used by bs-platform (bs-platform 7.0.0 uses ocaml 4.06.0)
then install opam then opam install merlin reason
then run opam user-setup install