From da69b8a6c785c4bd68e2db0fd079d7a709c5c652 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Thu, 15 Sep 2022 08:58:10 -0400 Subject: [PATCH] doom: Enable ess for R stuff --- doom/.config/doom/+ess.el | 12 ++++++++++++ doom/.config/doom/config.el | 1 + doom/.config/doom/init.el | 4 ++-- doom/.config/doom/packages.el | 2 ++ 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 doom/.config/doom/+ess.el diff --git a/doom/.config/doom/+ess.el b/doom/.config/doom/+ess.el new file mode 100644 index 0000000..f583be2 --- /dev/null +++ b/doom/.config/doom/+ess.el @@ -0,0 +1,12 @@ +;;; ../../.dotfiles/doom/.config/doom/+ess.el -*- lexical-binding: t; -*- + +;; https://github.com/polymode/poly-R/issues/34 +(setq polymode-lsp-integration nil) + +(use-package! ess-view + :after ess + :config + (setq ess-view--spreadsheet-program "open")) + +(use-package! ess-view-data + :after ess) diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index b73192c..e2374ed 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -15,6 +15,7 @@ (load! "+ui") ; theme, font, and appearance tweaks (load! "+projects") ; project-related (load! "+smudge") ; spotify +(load! "+ess") ; ess, R ;; Defaults diff --git a/doom/.config/doom/init.el b/doom/.config/doom/init.el index 8b1a793..d8de998 100644 --- a/doom/.config/doom/init.el +++ b/doom/.config/doom/init.el @@ -99,7 +99,7 @@ magit ; a git porcelain for Emacs make ; run make tasks from Emacs ;;pass ; password manager for nerds - ;;pdf ; pdf enhancements + pdf ; pdf enhancements ;;prodigy ; FIXME managing external services & code builders rgb ; creating color strings ;;taskrunner ; taskrunner for all your projects @@ -127,7 +127,7 @@ ;;elm ; care for a cup of TEA? emacs-lisp ; drown in parentheses ;;erlang ; an elegant language for a more civilized age - ;;ess ; emacs speaks statistics + (ess +lsp) ; emacs speaks statistics ;;factor ;;faust ; dsp, but you get to keep your soul ;;fortran ; in FORTRAN, GOD is REAL (unless declared INTEGER) diff --git a/doom/.config/doom/packages.el b/doom/.config/doom/packages.el index 401ebc8..c534d4a 100644 --- a/doom/.config/doom/packages.el +++ b/doom/.config/doom/packages.el @@ -53,3 +53,5 @@ (package! smudge :pin "9e3488f485b7d7f3c97ebaad34ed552bb0cc228a") (package! speed-type :pin "5ef695f7159aa1f20c7c9e55f0c39bcdacce8d21") (package! pinentry) +(package! ess-view) +(package! ess-view-data)