Add company-box-buffer-hook to run on newly created buffers #137
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Create hook to run customizations on newly created
company-box
buffers (both the choices buffer and the doc buffer).Rationale - I use https://github.com/ema2159/centaur-tabs, and don't want tabs to show up in my
company-box
completion popup. The way to do this in Centaur is to enablecentaur-tabs-local-mode
in the buffer. The cleanest way to facilitate this would be either:a) Create a new mode to run the popup buffers in, add
centaur-tabs-local-mode
to the mode hooks.b) Add a hook to run upon buffer creation.
I chose b), as it adds less cruft.