New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not an issue but doubts from a newbie #200

Closed
justrajdeep opened this Issue Dec 3, 2014 · 5 comments

Comments

Projects
None yet
3 participants
@justrajdeep

justrajdeep commented Dec 3, 2014

Hi

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.

  1. can we have a forum http://www.reddit.com/r/spacemacs where people can post questions?
  2. is there an equivalent to https://github.com/junegunn/vim-easy-align?
  3. is there something similar to http://vim.wikia.com/wiki/Highlight_multiple_words?
  4. i want to change the compile command. so when i do SPC c it runs make with a custom command
  5. i am used to splits, how do i define mapping , , , to move around the splits?
  6. how to increment numbers, i used to use in vim, here even in evil mode it takes me to the end of line.

Thanks in advance

@syl20bnr

This comment has been minimized.

Owner

syl20bnr commented Dec 3, 2014

Hi,

  1. There is a chat here: https://gitter.im/syl20bnr/spacemacs. I don't know if a subreddit is required given the current user base of spacemacs. Though you can post your questions on Emacs Stackexchange, there is a spacemacs tag available.
  2. Dunno.
  3. Try <SPC> h h for sticky highlights toggle and <SPC> h c to clear them. Also <SPC> s h to highlight a symbol and navigate/edit.
  4. The compile command is <SPC> C (capital C) which allows you to pass arguments to make.
  5. <SPC> # with # is the window number. <SPC> w X where X is h, j, k, or l and other bindings I forgot, check the documentation.
  6. The documentation is your friend.

I hope it will help you to get started.

@chrisbarrett

This comment has been minimized.

Contributor

chrisbarrett commented Dec 3, 2014

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

@syl20bnr syl20bnr added the Question label Dec 3, 2014

@justrajdeep

This comment has been minimized.

justrajdeep commented Dec 3, 2014

thanks @syl20bnr
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
@syl20bnr

This comment has been minimized.

Owner

syl20bnr commented Dec 3, 2014

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.

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

@justrajdeep

This comment has been minimized.

justrajdeep commented Dec 3, 2014

great. Thanks. will definitely take a look.

@justrajdeep justrajdeep closed this Dec 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment