      ("<M-down>" . nil)
      ("M-n"      . outline-next-visible-heading))
 
-    (key-chord-define outline-minor-mode-map "JJ" 'outshine-imenu)))
+    (key-chord-define outline-minor-mode-map "JJ" #'outshine-imenu)))
 
 
 (provide 'setup-outshine)

;; `outline' (not `outshine') library is loaded.

(use-package outshine
  :config
  (progn
    (setq outshine-use-speed-commands t)
    (setq outshine-org-style-global-cycling-at-bob-p t)

    ;; Source: http://emacs.stackexchange.com/a/2803/115
    (defun modi/outshine-table-of-contents ()
      "Create a table of content for outshine headers
Insert/update the TOC after the line that has the \"// Contents:\" string.
Don't add \"Revision Control\" heading to TOC.
"
      (interactive)
      (save-excursion
        (goto-char (point-min))
        (let* ((headings-list nil)
               (stars-list nil)
               heading)
          (while (search-forward-regexp
                  "^// \\*\\(\\**\\) \\(.+\\)" nil :noerror)
            (setq star    (match-string 1))
            (setq heading (match-string 2))
            (message "%s %s" star heading)
            (when (not (string= heading "Revision Control"))
              (setq stars-list    (cons star stars-list))
              (setq headings-list (cons heading headings-list))))

;; Time-stamp: <2015-02-25 15:52:06 kmodi>

;; Outshine
;; https://github.com/tj64/outshine
