   (global-unset-key (kbd "M-<down-mouse-1>"))
   (global-set-key (kbd "M-<mouse-1>") 'mc/add-cursor-on-click))
 
+(use-package origami :ensure t
+  :after key-chord
+  :config
+  (key-chord-define-global "QQ" #'origami-toggle-all-nodes)
+  (key-chord-define-global "qq" #'origami-toggle-node)
+  (global-origami-mode))
+
 (use-package phi-search :ensure t)
 (use-package phi-search-mc :ensure t
   :config

(use-package windsize :ensure t)
(windsize-default-keybindings)

(use-package key-chord :ensure t)

(use-package avy :ensure t
  :after key-chord

Repeated invocations toggle between the two most recently open buffers."
  (interactive)
  (switch-to-buffer (other-buffer (current-buffer) 1)))
(key-chord-define-global "JJ" #'ar/switch-to-previous-buffer)

;; Promising background process runner.
(use-package bpr :ensure t)
