 ;; Shortcut for compiling
 (global-set-key [(f9)] 'compile)
 
-;; Javascript mode
-(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
-
+;; To graphically indicate the character limit in a line
 (require 'fill-column-indicator)
 (setq-default fci-rule-column 80)
 (setq-default fci-rule-color "#555555")

;; try to automagically figure out indentation
(setq py-smart-indentation t)

;; Automatically indent code after RET
(electric-indent-mode +1)

;; Have those awesome matching pairs
(electric-pair-mode t)

;; Pymacs
;; (autoload 'pymacs-apply "pymacs")
;; (autoload 'pymacs-call "pymacs")
;; (autoload 'pymacs-eval "pymacs" nil t)
;; (autoload 'pymacs-exec "pymacs" nil t)
;; (autoload 'pymacs-load "pymacs" nil t)
;; (autoload 'pymacs-autoload "pymacs")

(defun pycheck-on-save ()
  "Use a linter to check file on save for python buffers."

             (setq c-basic-indent 4)
             (setq tab-width 4)))

;; Set C style to linux
(setq c-default-style "linux"
          c-basic-offset 8)

;; Set the cursor to a bar
(setq default-cursor-type 'bar)
