           '(lambda ()
              (yas-activate-extra-mode 'org-extra-yas-mode)
              (yas-minor-mode 1)))
-;; see http://stackoverflow.com/questions/7421445/emacs-entering-minor-mode-with-major-mode
-;; for how you should do this
-;; (defun org-extra-yas-mode-hook ()
-;;   (lambda ()
-;;     (require 'yasnippet)
-;;     (yas-activate-extra-mode 'org-extra-yas-mode)))
-;; or just do it the way suggested in the link
-;; (defun org-extra-yas-mode-hook ()
-;;   (org-extra-yas-mode 1))
-;; (add-hook 'org-mode-hook 'org-extra-yas-mode-hook)
-;; maybe try it in interactive mode because the documentation in yasnippet.el
-;; says the following:
-;;
-;;   M-x yas-activate-extra-mode
-;;
-;;     Prompts you for an extra mode to add snippets for in the
-;;     current buffer.
-;; hmm, this isn't working
-;; (defun org-extra-yas-mode-hook ()
-;;   (lambda ()
-;;     (require 'yasnippet)
-;;     (interactive)
-;;     (yas-activate-extra-mode 'org-extra-yas-mode)))
+
 (defun org-extra-yas-mode-activation-kludge ()
   (org-extra-yas-mode 1))
 (add-hook 'org-mode-hook 'org-extra-yas-mode-activation-kludge)


(add-hook 'makefile-mode-hook '(lambda () (auto-complete-mode)))

;;;; CSS ;;;;
;; get indentation working nicely
;; source: http://superuser.com/questions/381801/emacs-css-modes-most-feature-complete-and-maintained
;; (setq cssm-indent-function #'cssm-c-style-indenter)

;; ;; more attempts at getting it to work right
;; ;; source: http://stackoverflow.com/questions/4006005/how-can-i-set-emacs-tab-settings-by-file-type
;; (add-hook 'css-mode-hook
;;           '(lambda ()
;;              (setq indent-tabs-mode nil)))

;;;; Clojure ;;;;
;; source: http://clojure-doc.org/articles/tutorials/emacs.html
(defvar my:clojure-packages '(better-defaults

;; within a snippet
;; see https://joaotavora.github.io/yasnippet/snippet-expansion.html
(define-key yas-minor-mode-map (kbd "M-TAB") 'yas-expand)

;; allman-c-mode minor mode
(define-minor-mode allman-c-mode
