{"action":"created","issue":{"url":"https://api.github.com/repos/tonini/alchemist.el/issues/134","labels_url":"https://api.github.com/repos/tonini/alchemist.el/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/tonini/alchemist.el/issues/134/comments","events_url":"https://api.github.com/repos/tonini/alchemist.el/issues/134/events","html_url":"https://github.com/tonini/alchemist.el/issues/134","id":94487150,"number":134,"title":"Company didn't work in elixir file","user":{"login":"Cifer-Y","id":4470516,"avatar_url":"https://avatars.githubusercontent.com/u/4470516?v=3","gravatar_id":"","url":"https://api.github.com/users/Cifer-Y","html_url":"https://github.com/Cifer-Y","followers_url":"https://api.github.com/users/Cifer-Y/followers","following_url":"https://api.github.com/users/Cifer-Y/following{/other_user}","gists_url":"https://api.github.com/users/Cifer-Y/gists{/gist_id}","starred_url":"https://api.github.com/users/Cifer-Y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cifer-Y/subscriptions","organizations_url":"https://api.github.com/users/Cifer-Y/orgs","repos_url":"https://api.github.com/users/Cifer-Y/repos","events_url":"https://api.github.com/users/Cifer-Y/events{/privacy}","received_events_url":"https://api.github.com/users/Cifer-Y/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-11T16:19:17Z","updated_at":"2015-07-11T16:53:49Z","closed_at":null,"body":"In my init.el\r\n```\r\n(require 'company)\r\n(require 'elixir-mode)\r\n(require 'alchemist)\r\n(require 'elixir-mode)\r\n(require 'ruby-end)\r\n(add-to-list 'elixir-mode-hook\r\n             (defun auto-activate-ruby-end-mode-for-elixir-mode ()\r\n               (set (make-variable-buffer-local 'ruby-end-expand-keywords-before-re)\r\n                    \"\\\\(?:^\\\\|\\\\s-+\\\\)\\\\(?:do\\\\)\")\r\n               (set (make-variable-buffer-local 'ruby-end-check-statement-modifiers) nil)\r\n               (ruby-end-mode +1)))\r\n\r\n(add-hook 'after-init-hook 'global-company-mode)\r\n(add-hook 'elixir-mode-hook 'alchemist-mode)\r\n```\r\n\r\nIt can work well in other file, such as:\r\n![cifer init el emacs today at 00 20](https://cloud.githubusercontent.com/assets/4470516/8634458/e27c71cc-282b-11e5-8332-5cbf11b9ecaf.png)\r\n\r\nBut in elixir file, no matter if the file is in a mix project , just perform like below:\r\n![123](https://cloud.githubusercontent.com/assets/4470516/8634464/1a04a8c6-282c-11e5-8ccc-b11117e188d5.png)\r\n\r\nJust nothing happened... no error, no warning, no  completion"},"comment":{"url":"https://api.github.com/repos/tonini/alchemist.el/issues/comments/120643302","html_url":"https://github.com/tonini/alchemist.el/issues/134#issuecomment-120643302","issue_url":"https://api.github.com/repos/tonini/alchemist.el/issues/134","id":120643302,"user":{"login":"tonini","id":55331,"avatar_url":"https://avatars.githubusercontent.com/u/55331?v=3","gravatar_id":"","url":"https://api.github.com/users/tonini","html_url":"https://github.com/tonini","followers_url":"https://api.github.com/users/tonini/followers","following_url":"https://api.github.com/users/tonini/following{/other_user}","gists_url":"https://api.github.com/users/tonini/gists{/gist_id}","starred_url":"https://api.github.com/users/tonini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonini/subscriptions","organizations_url":"https://api.github.com/users/tonini/orgs","repos_url":"https://api.github.com/users/tonini/repos","events_url":"https://api.github.com/users/tonini/events{/privacy}","received_events_url":"https://api.github.com/users/tonini/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T16:53:49Z","updated_at":"2015-07-11T16:53:49Z","body":"Hi, \r\n\r\nIm currently in the mountains with just mobile internet :-)\r\n\r\nBut I try my best to help.\r\n\r\nFirst, you don't need to use a hook to initialr alchemist at all. Just the following will work sane:\r\n\r\n```el\r\n(require 'elixir-mode)\r\n(require 'alchemist-mode)\r\n```\r\n\r\nOthereise you call `alchemist-mode` twice anf it disable it again.\r\n\r\nI hope that helps\r\n\r\nCheers from the top of Switzerland. "}}