I have been using vim for almost 7 yrs now and fairly competent with it. I have tried to switch to emacs a couple of times but given up. i have been using spacemacs for a couple of days and starting to like it.
there are a few things i need to add. not knowing lisp, i am unable to determine what exactly to do.
Thanks in advance
<SPC> h h
<SPC> h c
<SPC> s h
<SPC> w X
I hope it will help you to get started.
Q2. Easy align looks cool. I want that. In the meantime, there's M-x align-regexp which covers the simple cases.
Q4. In Emacs, the compile-command variable determines what M-x compile does. You can either:
- write a hook to customise it for particular modes
- set it interactively for the current buffer with M-x add-file-local-variable compile-command "your command"
- set it manually in lisp with M-x eval-expression
M-x add-file-local-variable compile-command "your command"
one last question.
i see that you have perforce support. how do i add a mapping to run a custom perforce script?
in vim i used to use the mapping
sp | enew | setlocal bt=nofile bh=delete | r !`depth`/bin/p4blame :1
The best is to look at the layers in the contrib directory. In your case you should create a private layer (see README) and extend the p4 package to add some key bindings on <SPC> p 4 X with X being a key of your choice.
<SPC> p 4 X
See flycheck in python layer which extends the configuration of the spacemacs layer (base layer): https://github.com/syl20bnr/spacemacs/blob/master/contrib/lang/python/packages.el#L98
great. Thanks. will definitely take a look.