   :bind ("C-c o e" . eshell))
 
 ;; package manager
+;; doesn't populate completions like helm-pac-man
+;; maybe look at helm's implementation and recreate it with completing-read?
+(use-package system-packages
+  :straight t
+  :config
+  (setq system-packages-package-manager 'brew
+        system-packages-use-sudo nil))
 (use-package helm-system-packages
+  :disabled
   :straight t
   :defer t
   :after (helm)
   :bind ("C-c h i" . #'helm-system-packages))
 
-
-;;; Org-mode
+;;;; Org-mode
 
 (use-package org
   :straight t


;;; Completion

(use-package helm
  :straight t
  :defer t
  :bind
  ("M-x" . #'helm-M-x)
  ([remap apropos] .  #'helm-apropos)
  ([remap find-library] .  #'helm-locate-library)
  ([remap bookmark-jump] . #'helm-bookmarks)
  ([remap execute-extended-command] . #'helm-M-x)
  ([remap find-file] . #'helm-find-files)
  ([remap imenu] . #'helm-semantic-or-imenu)
  ([remap locate] . #'helm-locate)
  ([remap noop-show-kill-ring] . #'helm-show-kill-ring)
  ([remap occur] . #'helm-occur)
  ([remap switch-to-buffer] . #'helm-buffers-list)
  ([remap recentf-open-files] . #'helm-recentf)
  ("C-c f" .  #'helm-recentf)
  ("C-c s y" . #'helm-show-kill-ring)
  ("s-y" . #'helm-show-kill-ring)
  ("C-c s f" . #'helm-find)
  ("C-c s a" . #'helm-do-grep-ag)
  ("C-c ." . #'helm-semantic-or-imenu)
  :init
  (setq helm-follow-mode-persistent t) ; use ~C-c C-f~ to follow entries
  (when (eq system-type 'darwin)
    (setq find-program "gfind"))
  :config
  (helm-mode))

;; search through buffer
(use-package helm-swoop
  :straight t
  :defer t
  :bind
  ("C-c s s" . #'helm-swoop)
  ("s-s" . #'helm-swoop))


;;; Programming

;; allow subprocesses more data at once (lsp)
(setq read-process-output-max (* 1024 1024)) ;; 1mb

        ;; TODO: Consider orb to link org-ref, helm-bibtex and org-noter together
        ;;org-ref-notes-function 'orb-edit-notes)
        org-ref-default-bibliography "~/Zotero/zotero/zotero.bib"
        org-ref-default-citation-link "citep"))
(use-package helm-bibtex
  :disabled
  :straight t
  :after (org-ref)
  :config
  (setq bibtex-completion-bibliography org-ref-default-bibliography)
  :bind
  (:map org-mode-map
        ("C-c [" . #'org-ref-cite-insert-helm)))

;; taking notes from a document
(use-package org-noter
