   (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


;; C coding style
(setq c-default-style "linux"
             c-basic-offset 4)
;; scrolling
(setq scroll-preserve-screen-position t)
(setq mouse-wheel-progressive-speed nil)

;; Sometimes you have to
(require 'php-mode)

;; javascript
(require 'js2-mode)
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))

;; lua
(require 'lua-mode)
(setq lua-indent-level 2)
