 
 ;; No bars and buttons on linux, show a menu bar on mac anyway
 (if (eq system-type 'darwin)
-	(menu-bar-mode t)
+    (menu-bar-mode t)
   (menu-bar-mode -1))
 
 (when window-system

;; html-mode
;; Better navigation
(add-hook 'html-mode-hook
		  (lambda ()
			"html-mode-hook"
			(set (make-local-variable 'sgml-basic-offset) 2)
			(set (make-local-variable 'tab-width) 2)
			(define-key html-mode-map (kbd "<M-left>") 'sgml-skip-tag-backward)
			(define-key html-mode-map (kbd "<M-right>") 'sgml-skip-tag-forward)
			)
		  )

;; ido-mode
(setq ido-enable-flex-matching t
	  ido-all-frames 'visible
	  ido-case-fold t
	  ido-create-new-buffer 'prompt
	  ido-everywhere t)
(ido-mode t)

;; image modes

;; General settings
;; -----------------
(setq-default c-basic-indent 4
              c-basic-offset 4
              c-default-style "k&r"
              case-fold-search t
              column-number-mode t
              major-mode 'org-mode
              fill-adapt-mode t
              fill-column 80
              font-lock-maximum-decoration t
              indent-tabs-mode nil
              inhibit-startup-message t
              initial-scratch-message nil
              next-line-add-newlines nil
              nxml-child-indent 4
              require-final-newline t
              ring-bell-function 'ignore
              save-place t
              sentence-end-double-space nil
              tab-width 4
              transient-mark-mode t
              uniquify-buffer-name-style 'forward
              vc-follow-symlinks t
              visible-bell t)

;; Set the default browser to Chrome on linux
(when (eq system-type 'gnu/linux)
