 (global-set-key (kbd "C-c p") 'duplicate-line)
 
 ;; Train myself to use M-f and M-b instead
-(global-unset-key M-left)
-(global-unset-key (kbd "M-right"))
+(global-unset-key [M-left])
+(global-unset-key [M-right])
 
 ;; paredit-kill-sexps-on-whole-line
 



;;----------------------------------------------------------------------------
;; Autocomplete
;;----------------------------------------------------------------------------
(require 'auto-complete nil t)
(global-auto-complete-mode t)
(setq ac-auto-start 3)
(setq ac-dwim nil)
(set-default 'ac-sources
             (if (> emacs-major-version 22)
                 (progn

                lisp-mode textile-mode markdown-mode tuareg-mode))
  (add-to-list 'ac-modes mode))


(eval-after-load "viper"
  '(progn
