Skip to content

Instantly share code, notes, and snippets.

@brfitzpatrick brfitzpatrick/.emacs
Last active Oct 19, 2018

Embed
What would you like to do?
emacs25 ~/.emacs
(custom-set-variables
'(custom-enabled-themes (quote (manoj-dark)))
'(package-selected-packages (quote (polymode)))
'(show-paren-mode t))
(electric-indent-mode -1)
(add-hook 'after-change-major-mode-hook (lambda() (electric-indent-mode -1)))
(add-hook 'ess-mode-hook (lambda () (ess-set-style 'GNU 'quiet)))
(custom-set-faces)
(fset 'insert-new-R-chunk
[?` ?` ?` ?\{ ?r ?\} return return ?` ?` ?` return return ?\C-p ?\C-p ?\C-p])
(global-set-key (kbd "C-c a") 'insert-new-R-chunk)
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
(require 'poly-R)
(require 'poly-markdown)
(add-to-list 'auto-mode-alist '("\\.md" . poly-markdown-mode))
(add-to-list 'auto-mode-alist '("\\.Rmd" . poly-markdown+r-mode))
(add-to-list 'auto-mode-alist '("\\.rmd" . poly-markdown+r-mode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.