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

How to use? #55

Closed
seemsindie opened this issue Mar 17, 2015 · 7 comments
Closed

How to use? #55

seemsindie opened this issue Mar 17, 2015 · 7 comments

Comments

@seemsindie
Copy link

Hello,

I am a rookie when it comes to emacs and lisp, and i have trouble getting this to work.

I have added this:
(add-hook 'after-init-hook 'global-company-mode)
(add-to-list 'auto-mode-alist '(".ex$" . alchemist-mode))
(add-to-list 'auto-mode-alist '(".exs$" . alchemist-mode))

But neither syntax highlighting or auto complete are working, any ideas or a manual for how to use this? README.md is not very clear for me...

Thanks, Ivan.

@rranelli
Copy link
Contributor

Hi @seemsindie,

Syntax highlighting and basic Elixir integration is provided by elixir-mode

In order to get autocomplete features you need to install and configure company-mode

Were you able to install the packages via Melpa? (If you're not familiar with Melpa, take a look at this paragraph)

@seemsindie
Copy link
Author

Yes i was able to install it with melpa. I now installed elixir-mode and i have highlighting, but auto complete still don't work. For company-mode i only have:
(add-hook 'after-init-hook 'global-company-mode)
I am not sure if i need something else...

@rranelli
Copy link
Contributor

I still haven't used company-mode. I will switch to it and let you know what you need.

@seemsindie
Copy link
Author

Thanks man, i appreciate it 😄

@rranelli
Copy link
Contributor

@seemsindie, I just finished adding company-mode in my Emacs setup.

First, ensure you've already installed the company package (M-x package-install RET company RET)

After installing company, all I had to do was add the following lines to my init files:

(require 'company)
(global-company-mode)

(define-key company-active-map (kbd "C-n") 'company-select-next)
(define-key company-active-map (kbd "C-p") 'company-select-previous)

Seems like that's all there is to it.

@rranelli
Copy link
Contributor

rranelli commented Apr 3, 2015

@seemsindie Have you figured everything out?

Can this issue be closed?

@seemsindie
Copy link
Author

@rranelli Yes, thanks man!

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

No branches or pull requests

2 participants