add org-roam
This commit is contained in:
parent
3b94363609
commit
cc34efbda7
43
.emacs
43
.emacs
|
@ -34,6 +34,9 @@
|
|||
|
||||
(straight-use-package 'use-package)
|
||||
(setq straight-use-package-by-default t)
|
||||
|
||||
(straight-use-package 'org)
|
||||
|
||||
(global-set-key [f11] 'toggle-frame-fullscreen)
|
||||
(global-set-key (kbd "C-s") 'ripgrep-regexp)
|
||||
(global-set-key (kbd "C-,") 'move-to-previous-window)
|
||||
|
@ -146,6 +149,13 @@ and position the cursor inside the comment. Additionally insert the word under t
|
|||
(insert " */")
|
||||
(end-of-line 0))))
|
||||
|
||||
(defun markdown-convert-buffer-to-org ()
|
||||
"Convert the current buffer's content from markdown to orgmode format and save it with the current buffer's file name but with .org extension."
|
||||
(interactive)
|
||||
(shell-command-on-region (point-min) (point-max)
|
||||
(format "pandoc -f markdown -t org -o %s"
|
||||
(concat (file-name-sans-extension (buffer-file-name)) ".org"))))
|
||||
|
||||
(use-package evil
|
||||
:ensure t
|
||||
:init
|
||||
|
@ -516,6 +526,35 @@ Other buffer group by `centaur-tabs-get-group-name' with project name."
|
|||
(buffer-face-mode)))
|
||||
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda))
|
||||
|
||||
(use-package org-roam
|
||||
:ensure t
|
||||
:init
|
||||
(setq org-roam-v2-ack t)
|
||||
:custom
|
||||
(org-roam-directory "~/src/digital-brain")
|
||||
(org-roam-completion-everywhere t)
|
||||
:bind (("C-c n l" . org-roam-buffer-toggle)
|
||||
("C-c n f" . org-roam-node-find)
|
||||
("C-c n i" . org-roam-node-insert)
|
||||
:map org-mode-map
|
||||
("C-M-i" . completion-at-point))
|
||||
:config
|
||||
(org-roam-setup))
|
||||
|
||||
(use-package org-roam-ui
|
||||
:straight
|
||||
(:host github :repo "org-roam/org-roam-ui" :branch "main" :files ("*.el" "out"))
|
||||
:after org-roam
|
||||
;; normally we'd recommend hooking orui after org-roam, but since org-roam does not have
|
||||
;; a hookable mode anymore, you're advised to pick something yourself
|
||||
;; if you don't care about startup time, use
|
||||
;; :hook (after-init . org-roam-ui-mode)
|
||||
:config
|
||||
(setq org-roam-ui-sync-theme t
|
||||
org-roam-ui-follow t
|
||||
org-roam-ui-update-on-save t
|
||||
org-roam-ui-open-on-start t))
|
||||
|
||||
(use-package restclient)
|
||||
(use-package markdown-mode
|
||||
:ensure t
|
||||
|
@ -569,8 +608,8 @@ Other buffer group by `centaur-tabs-get-group-name' with project name."
|
|||
(add-to-list 'exec-path "/home/zongor/lib/elixir-ls")
|
||||
:hook
|
||||
((elixir-mode . lsp)
|
||||
;(rust-mode) . lsp)
|
||||
(go-mode) . lsp))
|
||||
;(rust-mode . lsp)
|
||||
(go-mode . lsp)))
|
||||
|
||||
(use-package lsp-ui
|
||||
:hook (lsp-mode . lsp-ui-mode)
|
||||
|
|
Loading…
Reference in New Issue