Files
emacs-dotfiles/.config.d/07-org.el

56 lines
1.5 KiB
EmacsLisp

;;; 07-org.el --- Setup org-mode. -*- no-byte-compile: t; lexical-binding: t; -*-
(use-package org
:ensure nil
:defer nil
:commands (org-mode)
:bind (:map org-mode-map
("C-c c" . org-fc-cloze-dwim)))
(setq org-format-latex-options (plist-put org-format-latex-options ':scale 2.0))
(use-package org-roam
:ensure t
:defer t
:commands (org-roam-node-insert
org-roam-node-find
org-roam-capture))
(add-hook 'org-mode-hook 'auto-fill-mode)
(setq org-cite-global-bibliography
'("/home/dizzar/data2/Notes/references/bibliography.bib"))
(setq org-roam-directory (file-truename "~/data2/Notes"))
(org-roam-db-autosync-mode)
(setq global-roam-map (make-sparse-keymap "Roam Keys"))
(global-set-key "\C-cr" global-roam-map)
(define-key global-roam-map "i" 'org-roam-node-insert)
(define-key global-roam-map "f" 'org-roam-node-find)
(define-key global-roam-map "c" 'org-roam-capture)
(setq global-org-map (make-sparse-keymap "Org Keys"))
(global-set-key "\C-co" global-org-map)
(define-key global-org-map "c" 'org-capture)
(define-key global-org-map "\C-c" 'org-capture)
(setq org-capture-templates
;; other capture templates
`(("s" "Slipbox" entry (file "~/data2/Notes/inbox.org")
"* %?\n")))
(use-package org-fc
:straight (org-fc
:type git
:host nil
:repo "https://git.sr.ht/~l3kn/org-fc"
:branch "main"
:files (:defaults "awk" "demo.org"))
:after org
:ensure t
:defer nil
:custom
(org-fc-directories '("~/data2/Notes/")))
;;; 07-org.el ends here