Skip to content
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
Closed

not an issue but doubts from a newbie #200

justrajdeep opened this issue Dec 3, 2014 · 5 comments
Labels

Comments

@justrajdeep
Copy link

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
Copy link
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
Copy link

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

@justrajdeep
Copy link
Author

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
Copy link
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
Copy link
Author

great. Thanks. will definitely take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants