feat(org-roam): add org-roam to my config
This commit is contained in:
parent
b3bbb0a8c9
commit
f51075d4e0
2 changed files with 71 additions and 41 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
#+title: PANKOMACS
|
#+title: PANKOMACS
|
||||||
#+author: Artur Manuel
|
#+author: Artur Manuel
|
||||||
#+PROPERTY: header-args :tangle config.el
|
#+PROPERTY: header-args :tangle config.el
|
||||||
|
@ -38,9 +37,16 @@ Using doom-themes here because Tokyo Night isn't on MELPA.
|
||||||
** Doom Modeline
|
** Doom Modeline
|
||||||
Also may not need doom modeline.
|
Also may not need doom modeline.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook (after-init . doom-modeline-mode))
|
: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
|
#+END_SRC
|
||||||
|
|
||||||
|
@ -446,6 +452,26 @@ This makes stuff a lot easier I hope.
|
||||||
* envrc
|
* envrc
|
||||||
Automatically sets up files so I can use an LSP and more.
|
Automatically sets up files so I can use an LSP and more.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package envrc
|
(use-package envrc
|
||||||
:hook (after-init . envrc-global-mode))
|
: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
|
#+END_SRC
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ emacsWithPackagesFromUsePackage, emacs29-pgtk }:
|
{ emacsWithPackagesFromUsePackage, emacs29-pgtk, python3 }:
|
||||||
emacsWithPackagesFromUsePackage {
|
emacsWithPackagesFromUsePackage {
|
||||||
package = emacs29-pgtk;
|
package = emacs29-pgtk;
|
||||||
config = ./config.org;
|
config = ./config.org;
|
||||||
|
@ -6,39 +6,43 @@ emacsWithPackagesFromUsePackage {
|
||||||
alwaysEnsure = true;
|
alwaysEnsure = true;
|
||||||
alwaysTangle = true;
|
alwaysTangle = true;
|
||||||
extraEmacsPackages =
|
extraEmacsPackages =
|
||||||
e: with e; [
|
e: (builtins.attrValues {
|
||||||
treesit-grammars.with-all-grammars
|
inherit (e)
|
||||||
nix-ts-mode
|
nix-ts-mode
|
||||||
base16-theme
|
base16-theme
|
||||||
vertico
|
vertico
|
||||||
orderless
|
orderless
|
||||||
marginalia
|
marginalia
|
||||||
embark
|
embark
|
||||||
consult
|
consult
|
||||||
embark-consult
|
embark-consult
|
||||||
consult-dir
|
consult-dir
|
||||||
doom-modeline
|
doom-modeline
|
||||||
nerd-icons
|
flycheck
|
||||||
flycheck
|
which-key
|
||||||
which-key
|
lsp-mode
|
||||||
lsp-mode
|
lsp-ui
|
||||||
lsp-ui
|
lsp-pyright
|
||||||
lsp-pyright
|
treemacs
|
||||||
treemacs
|
lsp-treemacs
|
||||||
lsp-treemacs
|
consult-lsp
|
||||||
consult-lsp
|
treemacs-icons-dired
|
||||||
treemacs-icons-dired
|
treemacs-nerd-icons
|
||||||
treemacs-nerd-icons
|
nerd-icons
|
||||||
nerd-icons
|
all-the-icons
|
||||||
all-the-icons
|
projectile
|
||||||
projectile
|
treemacs-projectile
|
||||||
treemacs-projectile
|
magit
|
||||||
magit
|
treemacs-magit
|
||||||
treemacs-magit
|
rustic
|
||||||
rustic
|
haskell-mode
|
||||||
haskell-mode
|
envrc
|
||||||
envrc
|
ccls
|
||||||
ccls
|
org-roam
|
||||||
|
;
|
||||||
|
}) ++ [
|
||||||
|
e.treesit-grammars.with-all-grammars
|
||||||
|
python3
|
||||||
];
|
];
|
||||||
override = _: prev: { use-package = prev.emacs; };
|
override = _: prev: { use-package = prev.emacs; };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue