 (add-hook 'c-mode-common-hook 'ac-cc-mode-setup)
 (add-hook 'auto-complete-mode-hook 'ac-common-setup)
 
-;; scrolling
-(setq scroll-preserve-screen-position t)
-(setq mouse-wheel-progressive-speed nil)
-;; smooth scrolling with margin
-(require 'smooth-scrolling)
-(setq smooth-scroll-margin 5)
-(setq scroll-margin 0)
-(setq scroll-conservatively 10000)
-;; necessary or scrolling is really slow
-(setq-default bidi-display-reordering nil)
-(setq auto-window-vscroll nil)
-
-;; I like M-g for goto-line
-(global-set-key "\M-g" 'goto-line)
+
+
+
 
 
 ;; snippets

(global-set-key (kbd "\C-c n")    'next-error)
(global-set-key (kbd "\C-c p")    'previous-error)
(global-set-key (kbd "\C-c i")    'indent-region)

(global-set-key (kbd "\C-f")   'forward-word)
(global-set-key (kbd "\C-b")   'backward-word)
(global-set-key (kbd "\M-f")   'forward-sentence)
(global-set-key (kbd "\M-b")   'backward-sentence)
(global-set-key (kbd "\C-p")   'undo-tree-undo)
(global-set-key (kbd "\M-p")   'undo-tree-redo)
(global-set-key (kbd "<home>") 'beginning-of-buffer)
(global-set-key (kbd "<end>")  'end-of-buffer)


;; undo highlighting
(setup "volatile-highlights"
       (volatile-highlights-mode t))

;; show #colors in matching color
(setup "rainbow-mode")

(ido-mode 1)
(setq ido-default-buffer-method 'selected-window)
