Diminish and org

This commit contains some documentation for org config file, adds org-roam-ui,
diminish mode to clear up the modeline along with some configuration and
commentary on diminish mode.
This commit is contained in:
2025-04-18 19:34:39 +09:00
parent 2d42287f34
commit 02a86ef9b0
3 changed files with 42 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
;; incomplete command (a prefix) in a popup.
(use-package which-key
:ensure t
:diminish which-key-mode
:config
(which-key-mode))

View File

@@ -1,5 +1,11 @@
;;; 07-org.el --- Setup org-mode. -*- no-byte-compile: t; lexical-binding: t; -*-
;;; Description:
;; This file contains the configuration for org mode and related packages.
;;; Code:
;; Org Mode the almighty
(use-package org
:ensure nil
:defer nil
@@ -7,20 +13,41 @@
:bind (:map org-mode-map
("C-c c" . org-fc-cloze-dwim)))
;; By default, LaTeX rendered in org is too small. This makes is 2 times bigger.
(setq org-format-latex-options (plist-put org-format-latex-options ':scale 2.0))
;; This is a package that helps use org to manage knowledge. As the name
;; suggests, it mimics the behavior of Roam Research.
(use-package org-roam
:ensure t
:defer t
:after org-roam
:commands (org-roam-node-insert
org-roam-node-find
org-roam-capture))
;; This package provides us with a *very* nice graph of our knowledge base in
;; our browser.
(use-package org-roam-ui
:ensure t
:defer t
:diminish org-roam-ui-mode
:diminish org-roam-ui-follow-mode
:commands (org-roam-ui-mode))
;; Auto Fill all org files.
(add-hook 'org-mode-hook 'auto-fill-mode)
;; Sometimes you gotta cite some sources, and that is where the bibliography
;; comes in.
(setq org-cite-global-bibliography
'("/home/dizzar/data2/Notes/references/bibliography.bib"))
;; This variable controls where org-roam will search for notes, and I store mine
;; here.
(setq org-roam-directory (file-truename "~/data2/Notes"))
;; This tells org-roam to sync notes with its index in the background.
(org-roam-db-autosync-mode)
(setq global-roam-map (make-sparse-keymap "Roam Keys"))
@@ -39,6 +66,7 @@
`(("s" "Slipbox" entry (file "~/data2/Notes/inbox.org")
"* %?\n")))
;; This package adds flashcard functionality to org files.
(use-package org-fc
:straight (org-fc
:type git