 ;; Required packages
 (require 'cc-mode nil 'noerror)
 (require 'autopair nil 'noerror)
-(require 'fill-column-indicator nil 'noerror)
-(require 'rainbow-delimiters nil 'noerror)
 (require 'xcscope nil 'noerror)
 (require 'whitespace nil 'noerror)
 (require 'auto-complete-config nil 'noerror)

 indent-tabs-mode t
 fci-rule-column 80
;show-trailing-whitespace t
)

(global-rainbow-delimiters-mode)

;;fci-column-indicator mode
(setq
 fci-handle-truncate-lines nil
 fci-rule-width 1
 fci-rule-color "#404040"
)
(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1)))
;(global-fci-mode 1)
(defun auto-fci-mode (&optional unused)
(if (> (window-width) fci-rule-column)

				       1 font-lock-format-specifier-face t)) )))

;;key chord config
(when (require 'key-chord)
  (key-chord-mode 1)
  (key-chord-define c-mode-map ";;" "\C-e")) ;end of the line

;; smart operator - really smart!
;; (require 'smart-operator nil 'noerror)
;; (defun my-c-mode-common-hook()
;;  (smart-insert-operator-hook)
;;  (local-unset-key (kbd "."))
;;  (local-unset-key (kbd ":"))
;;  (local-unset-key (kbd "%"))
;;  (local-set-key (kbd "*") 'c-electric-star))
;(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)

;; ECB env settings
