   (message "done."))
 (add-hook 'find-file-not-found-hooks 'auto-insert)
 
+;;; Yasnippet
+(yas-global-mode t)
+
+
+;;; Auto complete
+(require 'auto-complete-config)
+(ac-config-default)
+(global-auto-complete-mode t)
+
 ;;; C-mode
 
 (setq common-function-for-c-hook
-         (lambda () 
+         (lambda ()
            (local-set-key (kbd "C-; c") 'compile)
            (setq compile-command "./waf")))
 (add-hook 'c-mode-hook common-function-for-c-hook)


;; Packages
(require 'package)
(setq package-archives 
      (append '(("marmalade" . "http://marmalade-repo.org/packages/")
                ("melpa" . "http://melpa.milkbox.net/packages/"))
              package-archives))

;; ess-mode
(load "ess-site")

;;; Deleting trailing whitespace
(add-hook 'before-save-hook 'delete-trailing-whitespace)
