 (define-key osx-key-mode-map [(alt \\) ?t] 'toggle-truncate-lines)
 
 ;; buffer
+(use-package buffer-move
+  :ensure t
+  :init
+  (define-key osx-key-mode-map [(meta alt left)] 'buf-move-left)
+  (define-key osx-key-mode-map [(meta alt right)] 'buf-move-right)
+  )
 (define-key osx-key-mode-map [(alt t)] 'new-empty-buffer)
 (define-key osx-key-mode-map [(alt r)] 'revert-buffer)
 (define-key osx-key-mode-map [(alt q)] 'erase-buffer)
 
-(define-key osx-key-mode-map [(meta alt left)] 'buf-move-left)
-(define-key osx-key-mode-map [(meta alt right)] 'buf-move-right)
+(define-key osx-key-mode-map [(ctrl right)] 'next-buffer)
+(define-key osx-key-mode-map [(ctrl left)] 'previous-buffer)
 
 ;; macro
 (defun apply-named-macro-to-region-lines (top bottom)


;; files
(defmacro hot-file (name)
  `(lambda () (interactive) (find-file ,name)))

(define-key osx-key-mode-map [(alt /) ?s] (hot-buffer "*scratch*"))
(define-key osx-key-mode-map [(alt /) ?e] (hot-file "~/Library/Preferences/Aquamacs Emacs/Preferences.el"))

;; vertical window split
(setq split-width-threshold nil)

;; indentation
(setq-default indent-tabs-mode nil)
(setq-default tab-width 2)
(setq-default py-indent-offset 2)
(setq-default css-indent-offset 2)
(setq-default c-basic-offset 2)
(setq-default js2-basic-offset 2)
(setq-default javascript-indent-level 2)
(setq-default js-indent-level 2)
(setq-default scala-indent-level 2)
(custom-set-variables
 '(python-guess-indent nil)
 '(python-indent 2))

;; auto complete
(setq-default completion-ignore-case t)
