
;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

(require 'whitespace)
;;80 column limit
(setq whitespace-style '(face empty tabs lines-tail trailing))
(global-whitespace-mode t)
;;tab width
(setq default-tab-width 2)
(setq c-basic-offset 2)
;;spaces
(setq-default indent-tabs-mode nil)
(setq scroll-step 1)
;;ring bell
(setq ring-bell-function 'ignore)
;;default dir
;;(setq default-directory "~/code/GV1")
;;default font
;;(set-frame-font "Inconsolata 12" nil t)
;;(set-frame-font "Consolas 10" nil t)
;;no color highlight
(global-font-lock-mode 0)
;;column number
(setq column-number-mode t)
;;linum
;;(global-linum-mode 1)
;;;(set-face-foreground 'linum "medium blue")
(setq linum-format "%d ")
;;mathing parenthesis
(show-paren-mode 1)
(menu-bar-mode -1)
(if (display-graphic-p)
    (progn
      (tool-bar-mode -1)
      (toggle-scroll-bar -1)))
;;disable backup
(setq backup-inhibited t)
;;disable auto save
(setq auto-save-default nil)
;;disable backup files
(setq make-backup-files nil)
;;disable C-z
(global-unset-key (kbd "C-z"))
;;style
;(setq c-default-style "k&r")
(setq c-default-style "bsd")
;;no namespace indentation
(c-set-offset 'innamespace 0)
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))

