 (require 'rtags)
 (cmake-ide-setup)
 
+; comletion with rtags
+;(require 'rtags)
+;(require 'company)
+;(setq rtags-autostart-diagnostics t)
+;(rtags-diagnostics)
+;(setq rtags-completions-enabled t)
+;(push 'company-rtags company-backends)
+;(global-company-mode)
+;(define-key c-mode-base-map (kbd "<C-tab>") (function company-complete))
+
 ;; mapping for commands
 
 ;;load a file named key-chord.el from some directory in the load-path (e.g. "~/.emacs.d")


;; show line numbers (use nlinum-mode; linum-mode is slow)
;;(global-nlinum-mode)
(defconst modi/linum-mode-hooks '(verilog-mode-hook
                                  emacs-lisp-mode-hook
                                  cperl-mode-hook
                                  c-mode-hook
                                  python-mode-hook
                                  matlab-mode-hook

 ;show-trailing-whitespace t
 visible-bell nil)

; Ctrl-C Ctrl-V
;(cua-mode t)
;(setq cua-auto-tabify-rectangles nil) ;; Don't tabify after rectangle commands
;(transient-mark-mode 1) ;; No region when it is not highlighted
;(setq cua-keep-region-after-copy t) ;; Standard Windows behaviour


(setq show-paren-delay 0.01)
(show-paren-mode 1)
