2022-11-08 17:53:06 +00:00
|
|
|
;;; This file contains configuration for Emacs' org-mode
|
|
|
|
|
2022-11-08 17:53:07 +00:00
|
|
|
;;; org-mode
|
|
|
|
;; org-superstar
|
|
|
|
(use-package org-superstar
|
|
|
|
:config
|
2022-11-09 19:02:35 +00:00
|
|
|
;; Change org-mode's heading bullets
|
|
|
|
(setq org-superstar-headline-bullets-list
|
2022-11-09 07:02:57 +00:00
|
|
|
'("🞉" "🞈" "🞇" "🞆" "🞅" "🞄"))
|
2022-11-08 17:53:07 +00:00
|
|
|
|
2022-11-08 17:53:06 +00:00
|
|
|
;; Customize org-mode's default functionality
|
|
|
|
(setq org-ellipsis "..."
|
|
|
|
org-use-property-inheritance t
|
|
|
|
org-list-allow-alphabetical t
|
|
|
|
org-catch-invisible-edits 'smart
|
|
|
|
org-startup-indented t
|
|
|
|
org-hide-emphasis-markers t
|
|
|
|
org-startup-with-inline-images t
|
|
|
|
org-image-actual-width '(300)
|
|
|
|
org-pretty-entities t
|
|
|
|
org-hide-leading-stars t
|
|
|
|
org-adapt-indentation t)
|
|
|
|
|
|
|
|
;; Faces for the font sizes of org-mode headings
|
|
|
|
(set-face-attribute 'org-level-8 nil :weight 'bold :inherit 'default)
|
|
|
|
(set-face-attribute 'org-level-7 nil :inherit 'org-level-8)
|
|
|
|
(set-face-attribute 'org-level-6 nil :inherit 'org-level-8)
|
|
|
|
(set-face-attribute 'org-level-5 nil :inherit 'org-level-8)
|
|
|
|
(set-face-attribute 'org-level-4 nil :inherit 'org-level-8)
|
|
|
|
(set-face-attribute 'org-level-3 nil :inherit 'org-level-8 :height 1.15)
|
|
|
|
(set-face-attribute 'org-level-2 nil :inherit 'org-level-8 :height 1.35)
|
|
|
|
(set-face-attribute 'org-level-1 nil :inherit 'org-level-8 :height 1.65)
|
|
|
|
(set-face-attribute 'org-document-title nil
|
|
|
|
:height 1.85
|
|
|
|
:foreground 'unspecified
|
|
|
|
:inherit 'org-level-8)
|
|
|
|
|
2022-11-08 17:53:07 +00:00
|
|
|
;; Scale up latex elements
|
|
|
|
(plist-put org-format-latex-options :scale 1.75)
|
|
|
|
|
|
|
|
;; Enable org-superstar-mode in org-mode files
|
|
|
|
(add-hook 'org-mode-hook 'org-superstar-mode)
|
|
|
|
|
2022-11-08 22:05:28 +00:00
|
|
|
;;; org-roam - A plain-text personal knowledge management system
|
|
|
|
(use-package org-roam
|
|
|
|
:custom
|
|
|
|
(org-directory file-truename "Org/") ; Set the folder used by org-mode
|
|
|
|
(org-roam-directory (file-truename "Org/Roam/")) ; Set the folder used by org-roam
|
|
|
|
:init
|
|
|
|
(org-roam-db-autosync-mode 1)) ; Automatically sync nodes
|
|
|
|
|
|
|
|
(setq org-roam-capture-templates
|
|
|
|
'(("d" "default" plain
|
|
|
|
"\n%?"
|
|
|
|
:if-new (file+head "${slug}.org" "#+title: ${title}\n#+date: %U\n#+author: %n\n")
|
|
|
|
:unnarrowed t)))
|
|
|
|
|
|
|
|
;; Keybinds for org-mode
|
|
|
|
(general-create-definer diancite/org
|
|
|
|
:prefix leader-key)
|
|
|
|
|
|
|
|
(diancite/org
|
|
|
|
:keymaps 'normal
|
|
|
|
"n r" '(org-roam-node-find :wk "Find Nodes")
|
2022-11-09 07:02:57 +00:00
|
|
|
"n s" '(org-roam-db-sync :wk "Sync Nodes"))
|
2022-11-08 22:05:28 +00:00
|
|
|
|
2022-11-08 17:53:06 +00:00
|
|
|
;; Provide this file to init.el
|
2022-11-08 17:53:07 +00:00
|
|
|
(provide 'org-mode)
|