 
 ;; load ESS for R
 ;; (setq load-path (cons "/usr/share/emacs/site-lisp/ess" load-path))
-(setup "ess-site"
-  (setq inferior-julia-program-name "~/dev/julia/julia/usr/bin/julia-basic")
-  (add-to-list 'auto-mode-alist '("\\.jl$" . julia-mode)))
+(add-to-list 'auto-mode-alist '("\\.jl$" . julia-mode)
+(setup-lazy '(R R-mode julia-mode) "ess-site"
+  (setq inferior-julia-program-name "~/dev/julia/julia/usr/bin/julia-basic")))
 
 ;; auctex
 (setup "latex"


;; C coding style
(setq c-default-style "linux"
      c-basic-offset tab-width)
(global-set-key (kbd "M-RET") 'c-indent-new-comment-line)

(setup-after "auto-complete-config"
  (add-hook 'c-mode-hook

  (add-to-list 'auto-mode-alist '("\\.m$" . matlab-mode)))

;; dired
(setup-lazy '(dired-jump) "dired"
  ;; move files between split panes
  (setq dired-dwim-target t))
(setup-after "dired" 
