   :init (global-set-key (kbd "M-f l")
                         'ace-link))
 
+;; Org Roam
+(use-package org-roam
+  :ensure t
+  :defer t
+  :after org
+  :config (progn
+            (setq org-roam-directory "~/.local/share/org")
+            (org-roam-mode)))
+
 
 ;;; [CUSTOM FUNCTIONS] ==============================================
 

(use-package org
  :defer t
  :config (progn
            (setq org-agenda-files (list "~/.cache/master.org"))
            (setq org-log-done 'time)
            (global-set-key (kbd "M-f j")
                            'org-agenda-list)
            (evil-leader/set-key "m"
              (lambda ()
                (interactive)
                (find-file "~/.cache/master.org")))
            (evil-define-key 'normal
              org-mode-map
              (kbd "M-l")

  (interactive)
  (if (= (length (mapcar #'window-buffer
                         (window-list))) 1)
      (find-file "~/.local/share/org/master.org")
    (cond
     ((derived-mode-p 'prog-mode)
      (evil-quit))
