revise completion for ess

This commit is contained in:
petrucci4prez 2018-07-18 15:39:30 -04:00
parent 48e23e4ad6
commit d4ad986e3e
1 changed files with 4 additions and 3 deletions

View File

@ -334,7 +334,7 @@ event of an error or nonlocal exit."
** ess ** ess
NOTES: NOTES:
- ess is not considered part of prog-mode for some reason - ess is not considered part of prog-mode for some reason
- ess-mode requires a running R process for completion/flycheck to work - ess-mode requires a running R process for company to work
- flycheck requries r-lintr - flycheck requries r-lintr
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defun nd/init-ess-company () (defun nd/init-ess-company ()
@ -350,15 +350,16 @@ NOTES:
(ess-mode . company-mode) (ess-mode . company-mode)
(ess-mode . nd/init-ess-company) (ess-mode . nd/init-ess-company)
(ess-mode . prettify-symbols-mode) (ess-mode . prettify-symbols-mode)
(ess-mode . fci-mode)
(inferior-ess-mode . flycheck-mode)
(inferior-ess-mode . company-mode) (inferior-ess-mode . company-mode)
(inferior-ess-mode . nd/init-ess-company) (inferior-ess-mode . nd/init-ess-company)
(inferior-ess-mode . prettify-symbols-mode)) (inferior-ess-mode . prettify-symbols-mode))
:config :config
(setq inferior-R-args "--quiet --no-save" (setq inferior-R-args "--quiet --no-save"
ess-history-file "session.Rhistory" ess-history-file "session.Rhistory"
ess-history-directory (substitute-in-file-name "${XDG_CONFIG_HOME}/r/"))) ess-history-directory (substitute-in-file-name "${XDG_CONFIG_HOME}/r/"))
(add-to-list 'evil-motion-state-modes 'ess-help-mode))
#+END_SRC #+END_SRC
** python ** python
#+BEGIN_SRC #+BEGIN_SRC