feat(org-roam): add org-roam to my config

This commit is contained in:
Artur Manuel 2024-08-23 20:58:06 +01:00
commit f51075d4e0
Failed to generate hash of commit
2 changed files with 71 additions and 41 deletions

View file

@ -1,4 +1,3 @@
#+title: PANKOMACS
#+author: Artur Manuel
#+PROPERTY: header-args :tangle config.el
@ -38,10 +37,17 @@ Using doom-themes here because Tokyo Night isn't on MELPA.
** Doom Modeline
Also may not need doom modeline.
#+BEGIN_SRC emacs-lisp
(use-package doom-modeline
:ensure t
:hook (after-init . doom-modeline-mode))
(use-package doom-modeline
:ensure t
:hook (after-init . doom-modeline-mode)
:config
(setq doom-modeline-height 27)
(custom-set-faces
'(mode-line ((t (:family "Recursive Mono Casual Static" :height 1.1))))
'(mode-line-active ((t (:family "Recursive Mono Casual Static" :height 1.1)))) ; For 29+
'(mode-line-inactive ((t (:family "Recursive Mono Casual Static" :height 1.1)))))
)
#+END_SRC
* Vertico, Orderless, and more stuff
@ -446,6 +452,26 @@ This makes stuff a lot easier I hope.
* envrc
Automatically sets up files so I can use an LSP and more.
#+BEGIN_SRC emacs-lisp
(use-package envrc
:hook (after-init . envrc-global-mode))
(use-package envrc
:hook (after-init . envrc-global-mode))
#+END_SRC
* Org-mode
#+BEGIN_SRC emacs-lisp
(use-package org-roam
:ensure t
:custom
(org-roam-directory (file-truename "/path/to/org-files/"))
:bind (("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find)
("C-c n g" . org-roam-graph)
("C-c n i" . org-roam-node-insert)
("C-c n c" . org-roam-capture)
;; Dailies
("C-c n j" . org-roam-dailies-capture-today))
:config
;; If you're using a vertical completion framework, you might want a more informative completion interface
(setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag)))
(org-roam-db-autosync-mode)
;; If using org-roam-protocol
(require 'org-roam-protocol))
#+END_SRC

View file

@ -1,4 +1,4 @@
{ emacsWithPackagesFromUsePackage, emacs29-pgtk }:
{ emacsWithPackagesFromUsePackage, emacs29-pgtk, python3 }:
emacsWithPackagesFromUsePackage {
package = emacs29-pgtk;
config = ./config.org;
@ -6,39 +6,43 @@ emacsWithPackagesFromUsePackage {
alwaysEnsure = true;
alwaysTangle = true;
extraEmacsPackages =
e: with e; [
treesit-grammars.with-all-grammars
nix-ts-mode
base16-theme
vertico
orderless
marginalia
embark
consult
embark-consult
consult-dir
doom-modeline
nerd-icons
flycheck
which-key
lsp-mode
lsp-ui
lsp-pyright
treemacs
lsp-treemacs
consult-lsp
treemacs-icons-dired
treemacs-nerd-icons
nerd-icons
all-the-icons
projectile
treemacs-projectile
magit
treemacs-magit
rustic
haskell-mode
envrc
ccls
e: (builtins.attrValues {
inherit (e)
nix-ts-mode
base16-theme
vertico
orderless
marginalia
embark
consult
embark-consult
consult-dir
doom-modeline
flycheck
which-key
lsp-mode
lsp-ui
lsp-pyright
treemacs
lsp-treemacs
consult-lsp
treemacs-icons-dired
treemacs-nerd-icons
nerd-icons
all-the-icons
projectile
treemacs-projectile
magit
treemacs-magit
rustic
haskell-mode
envrc
ccls
org-roam
;
}) ++ [
e.treesit-grammars.with-all-grammars
python3
];
override = _: prev: { use-package = prev.emacs; };
}