(add-to-list 'load-path "~/.emacs.d/lisp")

; Do not display the splash screen
(setq inhibit-startup-screen t)

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(c-basic-offset 4))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(blank-empty ((t nil)))
 '(blank-indentation ((t (:foreground "dim gray"))))
 '(blank-newline ((t (:foreground "aquamarine3" :weight bold))))
 '(blank-space ((t (:foreground "dim gray"))))
 '(blank-tab ((t (:foreground "dim gray"))))
 '(blank-trailing ((t (:foreground "dim gray"))))
 '(font-lock-function-name-face ((t (:foreground "black" :weight bold))))
 '(font-lock-keyword-face ((t (:foreground "medium blue" :weight bold))))
 '(font-lock-type-face ((t (:foreground "ForestGreen" :weight bold)))))
 
(require 'blank-mode)
(global-blank-mode t)

(setq-default indent-tabs-mode nil)

(setq blank-line-column 550)

;; highlight brackets
(show-paren-mode 1)
(setq show-paren-style 'parenthesis)

;; C-q character inisert in hex form
(setq read-quoted-char-radix 16)

;; highlight current line
(global-hl-line-mode 1)

;; line number on the right
(require 'linum)
(global-linum-mode t)
;; use customized linum-format: add a addition space after the line number
(setq linum-format (lambda (line) (propertize (format (let ((w (length (number-to-string (count-lines (point-min) (point-max)))))) (concat "%" 
(number-to-string w) "d|")) line) 'face 'linum)))
