 
 ;; C coding style
 (setq c-default-style "linux"
-             c-basic-offset 4)
+      c-basic-offset 4)
+(add-hook 'c-mode-hook
+          (lambda ()
+          (add-to-list 'ac-sources 'ac-source-c-headers)
+          (add-to-list 'ac-sources 'ac-source-c-header-symbols t)))
 ;; scrolling
 (setq scroll-preserve-screen-position t)
 (setq mouse-wheel-progressive-speed nil)

      (end-of-line))))
(global-set-key "\C-e" 'smart-end-of-line)


;; semi-port of surround.vim
(require 'surround)
(global-set-key "\C-cd" 'surround-delete)
(global-set-key "\C-cD" 'surround-delete-within)
(global-set-key "\C-c\M-d" 'surround-change)

  (electric-indent-mode -1)
  (define-key yaml-mode-map [(return)] 'newline-and-indent))
(add-hook 'yaml-mode-hook 'no-electric-indent-yaml)

;; json
(require 'json-mode)
(add-to-list 'auto-mode-alist '("\\.json$" . json-mode))
;; octave mode
;; (autoload 'octave-mode "octave-mod" nil t)
;; (setq auto-mode-alist
