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

outshine breaks company-mode #38

Closed
brabalan opened this issue Nov 30, 2014 · 2 comments
Closed

outshine breaks company-mode #38

brabalan opened this issue Nov 30, 2014 · 2 comments

Comments

@brabalan
Copy link

Here is a way to reproduce it, starting from an emacs -Q. You will have to adjust the paths were company, outorg, and outshine can be found.

;; load company-mode

(add-to-list 'load-path "/Users/schmitta/.emacs.d/elpa/company-20141123.1927")
(load-file "/Users/schmitta/.emacs.d/elpa/company-20141123.1927/company-autoloads.el")

(global-company-mode)

;; company working at this point

(outline-minor-mode)

;; company still working at this point

;; load outorg and outshine

(load-file "/Users/schmitta/src/outorg/outorg.el")

;; company is still working at this point

(load-file "/Users/schmitta/src/outshine/outshine.el")

;; company is no longer working

(outline-minor-mode -1)

;; company is working again at this point
@ffevotte
Copy link
Contributor

ffevotte commented Dec 3, 2014

Is all of company-mode broken, or just idle completion? I.e. when you explicitly call company-complete, does it work as usual?

If only idle completion is not working, the problem you're probably having is that company-mode explicitly lists all commands which should trigger idle completion. Among this list is self-insert-command, which is rebound to outshine-self-insert-command by outshine.

Try adding something like this to your configuration file:

(add-to-list 'company-begin-commands 'outshine-self-insert-command)

@brabalan
Copy link
Author

brabalan commented Dec 3, 2014

The problem was for idle completion, and this solves it. Thanks a lot!

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