diff --git a/config.el b/config.el index 6994f4a..3cd43dd 100644 --- a/config.el +++ b/config.el @@ -54,3 +54,9 @@ (add-to-list 'projectile-globally-ignored-files ".gitkeep")) ;; Set org-mode as the default (setq-default major-mode 'org-mode) +;; Associate polymode to R markdown files +(add-to-list 'auto-mode-alist '("\\.[rR]md\\'" . poly-markdown+R-mode)) +;; Keybindings for R markdown polymode +(map! :map poly-markdown+R-mode-map + :n "RET" #'polymode-eval-chunk + :desc "Evaluate code block")