Skip to content

Instantly share code, notes, and snippets.

@billdenney
Created January 22, 2016 00:58
Show Gist options
  • Save billdenney/ecd07b21e5f418bd174a to your computer and use it in GitHub Desktop.
Save billdenney/ecd07b21e5f418bd174a to your computer and use it in GitHub Desktop.
;; Use spaces instead of tabs for indentation
(setq ess-indent-level 2)
(setq-default indent-tabs-mode nil)
(setq ess-default-style 'DEFAULT)
(setq inferior-R-args "--ess --no-save --no-restore-data --arch x64"
ess-indent-level 2
ess-continued-statement-offset 0
ess-eval-visibly nil)
(require 'ess-site)
;; Maybe better indentation settings
;; (setq ess-ac-R-argument-suffix " = ")
;; (setq ess-use-auto-complete t)
;; (add-hook 'ess-mode-hook
;; (lambda ()
;; (local-set-key (kbd "<s-return>") 'ess-eval-region-or-line-and-step)
;; (show-paren-mode t)
;; (setq ess-indent-level 2)
;; (setq ess-first-continued-statement-offset 2)
;; (setq ess-continued-statement-offset 0)
;; (setq ess-arg-function-offset 2)
;; (setq ess-arg-function-offset-new-line 2)
;; (setq ess-dont-vertically-align-closing-paren t)
;; ))
;; (ess-toggle-underscore nil)
;(setq show-paren-delay 0) ; how long to wait?
;(show-paren-mode t) ; turn paren-mode on
;(setq show-paren-style 'expression) ; alternatives are 'parenthesis' and 'mixed'
; ; what to do when parentheses are mismatched
;(set-face-foreground 'show-paren-mismatch-face "red")
;(set-face-attribute 'show-paren-mismatch-face nil
; :weight 'bold :underline t :overline nil :slant 'normal)
;(setq tramp-mode nil)
;(require 'tramp)
;(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
;'(inhibit-startup-screen t))
;(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
; )
(setq
scroll-margin 2
scroll-conservatively 100000
scroll-preserve-screen-position 1)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(inhibit-startup-screen t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment