                 lisp-mode textile-mode markdown-mode tuareg-mode))
   (add-to-list 'ac-modes mode))
 
-;; This stops "end" followed by "RET" getting completed to something
-;; like "endomorph" - have to use an explicit "TAB" to complete.
-(define-key ac-complete-mode-map (kbd "\r") nil)
 
 (eval-after-load "viper"
   '(progn



;;----------------------------------------------------------------------------
;; 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

(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 [M-right])

;; paredit-kill-sexps-on-whole-line

