# Zero to Emacs and Org-roam: a step-by-step guide on Windows 10

**URL:** <https://org-roam.discourse.group/t/zero-to-emacs-and-org-roam-a-step-by-step-guide-on-windows-10/400>\
**Category:** Guides\
**Created:** [June 16, 2020, 10:08pm UTC](https://org-roam.discourse.group/t/zero-to-emacs-and-org-roam-a-step-by-step-guide-on-windows-10/400 "2020-06-16T22:08:19Z")\
**Posts on this page:** 1\
**Showing post:** 68

<div class="post-metadata">

**Author:** ![jburkhard](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jburkhard/32/252_2.png) [@jburkhard](https://org-roam.discourse.group/u/jburkhard)\
**Post date:** [September 20, 2020, 12:13pm UTC](https://org-roam.discourse.group/t/zero-to-emacs-and-org-roam-a-step-by-step-guide-on-windows-10/400/68 "2020-09-20T12:13:05Z")

</div>

S U C C E S S  
And you dear comrade brought me there:

- Yes, I do have another `(add-hook 'after-init-hook 'global-company-mode)` in my one and only `config.org`  
(use-package company  
:ensure t  
:config  
(add-hook 'after-init-hook 'global-company-mode)  
(setq company-idle-delay 1)  
(setq company-minimum-prefix-length 3))  
…
- That one is above the other  
#+begin\_src emacs-lisp  
(use-package org-roam  
:ensure t  
:hook  
(after-init . org-roam)  
:custom  
(org-roam-directory “~/org/”)  
…
- The first worked always, but `org-roam` wouldn’t even after commenting out `company`
- BUT: I changed the latter to:  
(use-package org-roam  
:ensure t  
**:init**  
**(add-hook 'after-init-hook 'org-roam-mode)**  
:custom  
(org-roam-directory “~/org/”)  
…
- And **Boom** , it worked

Learning:

- Yes, multiple `after-init-hooks` are allowed, if done correctly
- preferably preceded with `:init`

So here is my `Messages` buffer output now (even reopened Emacs after disbled `org-roam-mode`:  
Loading c:/Users/JochenBurkhard/iCloudDrive/iCloud~com~appsonthemove~beorg/.emacs.d/config.el (source)…  
[yas] Prepared just-in-time loading of snippets successfully.  
Loading c:/Users/JochenBurkhard/iCloudDrive/iCloud~com~appsonthemove~beorg/.emacs.d/config.el (source)…done  
Loaded c:/Users/JochenBurkhard/iCloudDrive/iCloud~com~appsonthemove~beorg/.emacs.d/config.el  
(org-roam) files: Δ0, headlines: Δ0, links: Δ0, tags: Δ0, titles: Δ0, refs: Δ0, deleted: Δ0  
Loading c:/Users/JochenBurkhard/iCloudDrive/iCloud~com~appsonthemove~beorg/.emacs.d/recentf…done  
Cleaning up the recentf list…done (0 removed)  
For information about GNU Emacs and the GNU system, type C-h C-a.  
Package cl is deprecated

---

_[View the full topic](https://org-roam.discourse.group/t/zero-to-emacs-and-org-roam-a-step-by-step-guide-on-windows-10/400)._
