[ESS] company-mode?
Vitalie Spinu
@p|nuv|t @end|ng |rom gm@||@com
Sun Sep 6 16:43:05 CEST 2015
As Ista already pointed out, company ESS integration needs no configuration.
Company-mode is great but its default keybindings are not so much. Here is what
I do:
(define-key company-active-map [tab] 'company-complete-selection)
(define-key company-active-map (kbd "TAB") 'company-complete-selection)
(define-key company-active-map [return] nil)
(define-key company-active-map (kbd "RET") nil)
(define-key company-active-map (kbd "M-n") nil)
(define-key company-active-map (kbd "M-p") nil)
(define-key company-active-map (kbd "M-h") 'company-show-doc-buffer)
(define-key company-active-map (kbd "M-,") 'company-select-next)
(define-key company-active-map (kbd "M-k") 'company-select-previous)
Some keys above are unset (bound to nil) because they interfere with the binding
in the comint mode (aka *R* buffers).
Vitalie
PS: Ista, great .emacs.d! Reminded me that I badly need to cleanup mine.
>> On Sun, Sep 06 2015 15:06, Joshua Wiley wrote:
> Hi All,
> I'm using ESS 15.03 and have installed company-mode and added a hook at the
> end of my emacs to enable company-mode globally:
> (add-hook 'after-init-hook 'global-company-mode)
> I am wondering in R scripts, if there is a way to have company-R-objects or
> company-R-args run automatically when pressing tab instaed of M-x
> company-R-objects (which works great when I do it)?
> Thanks in advance for what is probably a question born of my own lack of
> Emacs knowledge.
> Cheers,
> Josh
More information about the ESS-help
mailing list