syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

org-roam disables org-mode since update on develop branch #15636

Closed pamrg1 closed 2 years ago

pamrg1 commented 2 years ago

Description :octocat:

org-roam disables org-mode since I updated the develop branch to newest version

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: I can't type in any new characters and the file is displayed in full ascii text. No nice visuals

Expected behaviour: :heart: :smile: I should be able to use org-roam with a .org file that also loads org-mode functionalities I also added:

(defun dotspacemacs/user-init ()
  ;; if I put this section in dotspacemacs/user-config then the emacs daemon fails
  (setq org-roam-directory "~/blabla")
  (setq org-roam-db-location "~/blabla/db/org-roam.db")
  (add-hook 'org-mode-hook 'org-roam-mode)
)

(defun dotspacemacs/user-config ()
  ;; Builds org-roam cash automatically
  (org-roam-db-autosync-mode)
  ;; to enable org-roam-bibtex-mode by default
  (use-package org-roam-bibtex
  :after org-roam
  :hook (org-roam-mode . org-roam-bibtex-mode))
)

System Info :computer:

Backtrace :paw_prints:

<<BACKTRACE IF RELEVANT>>
emacs18 commented 2 years ago

This appears to be a user setup error. For example

(add-hook 'org-mode-hook 'org-roam-mode)

does not make sense to me. This is not how you setup org-roam within spacemacs or anywhere else! Please read org layer documentation on how to setup org-roam. Basically you need to set org-enable-roam-support to t in org layer setup.