:PROPERTIES:
:ID:       168b6b10-d670-4f9d-89cf-aeb59aa644a1
:END:
#+title: Emacs Org Noter
#+filetags: :emacs:org:notes:

**For the config, see [[id:1c87e4f1-fa7e-4200-9a29-a5a98d4c7ac9][Emacs Config]] for the Source of truth**

In order to create notes for a book:
1. Create an empty org roam file
2. Add the relative file path in metadata for that node, with the title ~NOTER_DOCUMENT~
   See the example below (auto save and page will get filled in)
3. Hover over the Notes heading created and click ~SPC-n n~ to open org noter

#+begin_src org
  ,* Ikigai Notes
     :PROPERTIES:
     :NOTER_DOCUMENT: ../../../pdfs/_misc/Ikigai.pdf
     :NOTER_AUTO_SAVE_LAST_LOCATION: t
     :NOTER_PAGE: 61
     :END:
#+end_src

* Config needed:
#+begin_src emacs-lisp

  (setq org-noter-notes-search-path
        '("D:\\_nextcloud\\master-folder\\org_files\\org_roam\\"))
  (setq org-noter-always-create-frame nil)
  (setq org-noter-property-doc-file "NOTER_DOCUMENT")

  (require 'pdf-tools)
  (pdf-tools-install)
  (use-package pdf-view-restore
    :after pdf-tools
    :config
    (add-hook 'pdf-view-mode-hook 'pdf-view-restore-mode)
    (setq pdf-view-restore-filename "~/.emacs.d/.pdf-view-restore"))

#+end_src

For non pdfs notes:
#+begin_src emacs-lisp
  
(setq org-capture-templates
      '(("d" "Daily TODO" entry
	 (file+headline (lambda () (z/find-current-week-file)) "TODOs")
	 "* TODO %?\nSCHEDULED: %t\n"
	 :empty-lines 1)

	("c" "Add to calendar.org" entry
         (file+headline "~/master-folder/org_files/calendar.org" "Calendar")
         "* TODO %?\nSCHEDULED: %^t\n"
         :empty-lines 1)

	("n" "Add notes" entry
	 (file+headline (lambda () (z/find-current-week-file)) "Notes")
	 "* Note: %?\n"
	 :empty-lines 1)

	("w" "Weekly Review" entry
	 (file+function (lambda () (z/find-current-week-file)) z/goto-weekly-review)
	 "* Review: %?\nEntered on %U\n"
	 :empty-lines 1)

	("b" "Book Note" entry
	 (file+headline (lambda () (buffer-file-name)) "Notes")
	 "** p. %^{Page}\n[%^{Type|Insight|Important|Quote|Confusing}] %?\n")
))

#+end_src

* Keybindings:
#+begin_src emacs-lisp
  (dt/leader-keys
  "n" '(:ignore t :wk "Org Noter")
  "n n" '(org-noter :wk "Open org-noter")
  )
#+end_src

