 ;; Emacs initialization file
-
-;;;; Plugin / package setup
-
-
-(load-file "~/.emacs.d/init-package.el")
 
 ;;;; Functions
 


(scroll-bar-mode -1)
(tool-bar-mode -1)

(fset 'yes-or-no-p 'y-or-n-p)


;;;; Programming Setup Section

;; Camel case support

(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
(subword-mode)

(require 'cc-mode)

(c-add-style
 "mycppstyle"
 '((c-basic-offset . 4)
   (c-comment-only-line-offset . 0)
   (c-offsets-alist
    (access-label -4)
    (defun-open . 0)
    (defun-close . 0)
    (statement-block-intro . +)
    (substatement-open . 0)
    (substatement-label . 0)
    (label . 0)
    (statement-cont . 0)
    (inline-open . 0)
    (inline-close . 0)
    (innamespace . 0)
    (inextern-lang . 0)
    (extern-lang-open . 0)
    (extern-lang-close . 0))))

;(add-hook 'c++-mode-hook (lambda () (c-set-style "mycppstyle")))
(setq c-default-style (cons '(c++-mode . "mycppstyle") c-default-style))

;; scroll the output of a compilation window until an error is encountered
(setq compilation-scroll-output 'first-error)
