 			   ("~/memex/someday.org" :level . 1)
 			   ("~/memex/tickler.org" :maxlevel . 2)))
 
+;;; Bongos
+
+(when (not (package-installed-p 'bongo))
+  (package-install 'bongo))
+
 ;;; Emacs server
 
 (server-start)

(when (eq system-type 'darwin)
  (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))

(package-initialize)

;;; ---------- Use better defaults ----------

(setq denote-directory (expand-file-name "~/memex"))

(define-key global-map (kbd "C-c n r") #'denote-dired-rename-file)
(define-key global-map (kbd "C-c n n") #'denote-create-note)
(define-key global-map (kbd "C-c n l") #'denote-link-insert-link)

;;; Logos narrowing

(when (not (package-installed-p 'logos))
  (package-refresh-contents)
  (package-install 'logos))
(require 'logos)
(setq logos-outlines-are-pages t)
(setq logos-outline-regexp-alist
      `((emacs-lisp-mode . "^;;;+ ")
        (org-mode . "^\\*+ +")
        (t . ,(or outline-regexp logos--page-delimiter))))
(define-key global-map (kbd "C-x n l") #'logos-narrow-dwim)

;;; init.el ends here
