Emacs ess is automatically filled

I am an R user, I want to use R in emacs. But I have problems setting ess in emacs. I have installed autocomplete packages and the latest essays in emacs. But when I run r in emacs, autocomplete does not work very well. When I type the application, I suppose to show it as an image ( http://www.emacswiki.org/pics/static/ess-ac3 ), but in my emacs neither the autocomplete nor the yellow part shows.

My OS: ubuntu 12.04 amd64

my ~ / .emacs file

;; Auto-complete (add-to-list 'load-path "~/.emacs.d/site-lisp") (require 'auto-complete-config) (add-to-list 'ac-dictionary-directories "~/.emacs.d/site-lisp/ac-dict") (ac-config-default) ; ess-site (add-to-list 'load-path "/usr/share/emacs/site-lisp/ess") (require 'ess-site) (setq ess-eval-visibly-p nil) (setq ess-ask-for-ess-directory nil) 
+2
autocomplete emacs ess
source share
3 answers

Autocomplete works for me with this setting

 (setq ess-use-auto-complete t) 
0
source share

I have the same problem and the following code worked for me:

 (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (package-initialize) ;load and activate packages, including auto-complete (ac-config-default) (setq ess-use-auto-complete 'script-only) ;;if not working, use the following instead of (setq ess-use-auto-complete 'script-only) ;;(global-auto-complete-mode t) 
0
source share

I recently started using ESS for Windows and struggled with the same issue. I don’t know all the inputs and outputs, but the latest versions of ESS suggest using company mode rather than auto-full mode. With this minimal setup, it seems autocomplete works quite well for me with the following setup:

  • Windows 10 x64
  • R 3.4.3 x64
  • Emacs 25 x64 is installed normally
  • MELPA reputation is included in init.el
  • package-install [RET] company
  • package-install [RET] ess
  • open a new R file in any directory
  • Mx company-mode to enable company-mode in the current buffer
  • `Cc Cz 'to start the lower R process

At this point, with the init.el file below, R runs, completing calls to functions and package elements. I think that more configuration is required to adapt it to your liking, but the transition to this point took me a lot of time, I think it is successful.

emacs ess autocomplete

init.el :

 (require 'package) (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) (not (gnutls-available-p)))) (proto (if no-ssl "http" "https"))) (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t) ) (package-initialize) ;; emacs controlled settings (custom-set-variables '(package-selected-packages (quote (company ess))) '(show-paren-mode t) '(tool-bar-mode nil)) (custom-set-faces '(default ((t (:family "Consolas" :foundry "outline" :slant normal :weight normal :height 113 :width normal))))) (require 'company) 
0
source share

All Articles