 ;; go get -u code.google.com/p/rog-go/exp/cmd/godef
 ;; go get -u code.google.com/p/go.tools/cmd/goimports
 ;; Useful info at:
-;; http://tleyden.github.io/blog/2014/05/22/configure-emacs-as-a-go-editor-from-scratch
-;; http://tleyden.github.io/blog/2014/05/27/configure-emacs-as-a-go-editor-from-scratch-part-2
-;; http://dominik.honnef.co/posts/2013/03/writing_go_in_emacs
+;; From http://tleyden.github.io/blog/2014/05/22/configure-emacs-as-a-go-editor-from-scratch
+;; From http://tleyden.github.io/blog/2014/05/27/configure-emacs-as-a-go-editor-from-scratch-part-2
+;; From http://dominik.honnef.co/posts/2013/03/writing_go_in_emacs
 (defun ar/go-mode-hook-function ()
   "Called when entering `go-mode'."
   (helm-dash-activate-docset "Go")


(add-hook 'js-mode-hook #'ar/js-mode-hook-function)

;; https://github.com/howardabrams/dot-files/blob/HEAD/emacs-client.org
(use-package color-theme-sanityinc-tomorrow :ensure t)

;; https://github.com/howardabrams/dot-files/blob/HEAD/emacs-client.org
;; (ar/change-theme 'color-theme-sanityinc-tomorrow-night
;;                  'ar/org-src-color-blocks-dark)


(use-package org :config
  (add-hook 'org-mode-hook #'ar/org-mode-hook-function))

;; From http://endlessparentheses.com/emacs-narrow-or-widen-dwim.html
(defun ar/narrow-or-widen-dwim (p)
  "Widen if buffer is narrowed, narrow-dwim otherwise.
Dwim means: region, org-src-block, org-subtree, or defun,
