Konfiguration

Anleitung

../../_images/org-raom-templates.webp
Typ:    YouTube-Video
Dauer:  31:05
Autor:  System Crafters
Quelle  https://youtu.be/YxgA5z2R08I

Installation

M-x package-install: org-raom

Wo wird gespeichert (Ordner)?

#+BEGIN_SRC emacs-lisp

  (setq org-roam-directory "~/laderampe/zettelkasten/")
  (require 'org-roam)
  (setq org-roam-directory (file-truename "~/laderampe/zettelkasten"))
  (org-roam-db-autosync-mode)

#+END_SRC

Konfiguration

Templates, Tastenkürzel, …

#+BEGIN_SRC emacs-lisp

  (use-package org-roam
    :after org
    :init (setq org-roam-v2-ack t) ;; Acknowledge V2 upgrade
    :custom
    (org-roam-directory (file-truename "~/laderampe/zettelkasten/"))
    :config
    (org-roam-setup)
    (setq org-roam-completion-everywhere t)
    (setq org-roam-capture-templates
          '(("d" "default" plain "%?"
             :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+date: %U\n")
             :unnarrowed t)
            ("a" "My-Projekt" plain
             (file "~/laderampe/zettelkasten/projekte/templates/tmpl-my-projekt.org")
             :if-new (file+head "~/laderampe/zettelkasten//projekte//%<%Y%m%d%H%M%S>-${slug}.org"
                                "#+title: ${title}\n")
             :unnarrowed t )
            ("n" "k4-stuff" plain (file "~/laderampe/zettelkasten//k4/templates/template.org"
                                        :if-new (file+head "~/laderampe/zettelkasten//k4/%<%Y%m%d%H%M%S>-${slug}.org"
                                                           "#+title: ${title}\n")
                                        :unnarrowed t))
            ))

    :bind (("C-c n f" . org-roam-node-find)
           ("C-c n r" . org-roam-ref-add)
           (:map org-mode-map
                 (("C-c n i" . org-roam-node-insert)
                  ("C-c n o" . org-id-get-create)
                  ("C-c n t" . org-roam-tag-add)
                  ("C-c n a" . org-roam-alias-add)
                  ("C-c n l" . org-roam-buffer-toggle)
                  ("C-M-i"   . completion-at-point)
                  )))
    )

#+END_SRC