 	(require 'rtags)
 	))
 
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; completion ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+(setq tab-always-indent 'complete)      ;or t to avoid completion
+(add-to-list 'completion-styles 'initials t)
+(setq completion-auto-help nil)
+(setq completion-cycle-threshold t)     ;always cycle
+;; Ignore case when completing file names
+(setq read-file-name-completion-ignore-case nil)
+
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; auto-complete ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (eval-and-compile
   (add-to-list 'load-path (concat my/plugins-directory "auto-complete/")))

      '(sql-mode nxml-mode cmake-mode folio-mode protobuf-mode
                 python-mode dos-mode gud-mode sh-mode
                 makefile-mode makefile-automake-mode makefile-gmake-mode
                 autoconf-mode gdb-script-mode awk-mode
                 mock-mode))
(require 'auto-complete-config)
(ac-config-default)
(setq-default ac-sources (append '(ac-source-filename) ac-sources))
(setq ac-use-menu-map t)
(setq ac-auto-start t)
(setq ac-ignore-case nil)
(ac-flyspell-workaround)
(define-key ac-mode-map (kbd "M-/") 'auto-complete)
;(define-key ac-mode-map (kbd "<lwindow> TAB") 'auto-complete)
(define-key ac-mode-map (kbd "\C-c TAB") (lambda()(interactive)
                                           (setq ac-auto-start
                                                 (null ac-auto-start))))
(setq ac-menu-height 20)
;; rtags
(when (featurep 'rtags)
  (require 'rtags-ac)

(setq ff-always-try-to-create nil)
;; Preserve line position on scroll
(setq scroll-preserve-screen-position t)
(show-paren-mode t)
(size-indication-mode 1)
;; don't add new-lines to end of buffer on scroll
