                         arg)
                      t/icomplete-page-scroll-margin))
         (icomplete-backward-completions))))
-  (icomplete-mode)
   :config
   (setq icomplete-scroll t
         icomplete-show-matches-on-no-input t

            (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
                       ":PROPERTIES:\n:NOTER_DOCUMENT: %F\n:END:\n#+title: ${title}\n#+STARTUP: latexpreview showeverything")
            :unnarrowed t)))
  :bind
  ("C-c n r f" . #'org-roam-node-find)
  ("C-c n r i" . #'org-roam-node-insert)
  ("C-c n r I" . #'org-id-get-create)
  ("C-c n r n" . #'org-roam-capture)
  ("C-c n r r" . #'org-roam-buffer-toggle)
  :config
  (org-roam-db-autosync-mode))

;; browser page for viewing/navigating org-roam notes
(use-package org-roam-ui


;; HTML browser
(use-package eww
  :defer t
  :bind ("C-c o w" . #'eww)
  :hook (eww-mode . (lambda () (setq cursor-type '(bar . 2)))))

