|
|
@ -827,13 +827,16 @@ Org overwrites RET and C-j, so I need to disable the rebinds |
|
|
|
(setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate) |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
I want plots! |
|
|
|
TODO: ess belongs to programming languages |
|
|
|
to start an ess instance C-c C-s |
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
(use-package ess |
|
|
|
:ensure t |
|
|
|
) |
|
|
|
(add-hook 'org-babel-after-execute-hook 'org-display-inline-images) |
|
|
|
(add-hook 'org-mode-hook 'org-display-inline-images) |
|
|
|
(use-package ess |
|
|
|
:ensure t |
|
|
|
:init |
|
|
|
(add-hook 'ess-mode-hook 'company/ess-mode-hook) |
|
|
|
) |
|
|
|
(add-hook 'org-babel-after-execute-hook 'org-display-inline-images) |
|
|
|
(add-hook 'org-mode-hook 'org-display-inline-images) |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
** Org babel/source blocks |
|
|
@ -1178,6 +1181,14 @@ It is only available for emacs 26 and higher. |
|
|
|
) |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
(defun company/ess-mode-hook() |
|
|
|
(message "company/ess-mode-hook activated") |
|
|
|
; (set (make-local-variable 'company-backends) |
|
|
|
; '((company-ess-backend company-R-args company-R-objects))) |
|
|
|
(company-mode t)) |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
(defun add-pcomplete-to-capf () |
|
|
|
(add-hook 'completion-at-point-functions 'pcomplete-completions-at-point nil t)) |
|
|
|
;; (add-hook 'completion-at-point-functions 'pcomplete-completions-at-point nil t) |
|
|
|