 
 (require 'package)
 (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
-;; (package-refresh-contents)   ;; keep it on auto-package-update
 
 (dolist (package package-list)
   (unless (package-installed-p package)

(add-to-list 'cc-other-file-alist '("\\.m\\'" (".h")))
(add-to-list 'cc-other-file-alist '("\\.mm\\'" (".h")))

(when (not *kelly*)
  (setq clang-format-style (concat "{BasedOnStyle: Google,"
                                   " BreakBeforeBraces: Mozilla,"
                                   " BinPackParameters: true,"
                                   " BreakBeforeBinaryOperators: NonAssignment,"
                                   " IndentWidth: 2,"
                                   " ColumnLimit: 90,"
                                   " AlwaysBreakBeforeMultilineStrings: false,"
                                   " SpacesBeforeTrailingComments: 4,"
                                   " AccessModifierOffset: -2,"
                                   " AllowShortFunctionsOnASingleLine: Inline,"
                                   " NamespaceIndentation: All,"
                                   " UseTab: Never,"
                                   " ConstructorInitializerIndentWidth: 2,"
                                   " ContinuationIndentWidth: 2,"
                                   " PointerAlignment: Left,"
                                   " DerivePointerAlignment: false,"
                                   " Standard: Cpp11,"
                                   " SortIncludes: false}")))

(setq clang-format-executable "clang-format")   ;; ev symlink in ~/bin


(add-hook 'emacs-lisp-mode-hook #'smartparens-mode)
(add-hook 'scheme-mode-hook #'smartparens-mode)
(add-hook 'lisp-mode-hook #'smartparens-mode)

(bind-key "C-M-;" 'comment-or-uncomment-sexp)

