diff --git a/config/.config/starship.toml b/config/.config/starship.toml index f4ad09d..4e6f825 100644 --- a/config/.config/starship.toml +++ b/config/.config/starship.toml @@ -63,7 +63,7 @@ deleted = 'x' [golang] symbol = 'go: ' -format = '[$symbol($version )($style)' +format = '[$symbol($version )]($style)' [nix_shell] symbol = 'nix: ' diff --git a/doom/.doom.d/config.el b/doom/.doom.d/config.el index a8d1ad1..aa8dabb 100644 --- a/doom/.doom.d/config.el +++ b/doom/.doom.d/config.el @@ -100,13 +100,8 @@ Version 2015-08-22" (kill-new (buffer-string)) (delete-region (point-min) (point-max))))) -;; open URL in Firefox/LibreWolf -(defun browse-host-web (url) - "Browse URL with Firefox/LibreWolf/IceCat" - (interactive "sURL: ") - (shell-command (concat "librewolf " url))) - -(setq browse-url-browser-function 'browse-host-web) +;; open links in default browser +(setq browse-url-browser-function 'browse-url-default-browser) ;; after copy Ctrl+c in Linux X11, you can paste by `yank' in emacs (setq select-enable-clipboard t) @@ -170,9 +165,9 @@ If point was already at that position, move point to beginning of line." (eval-after-load 'org '(org-load-modules-maybe t)) -(setq org-directory "~/org/") -(setq org-default-notes-file "~/org/inbox.org") -(setq org-agenda-files '("~/org/inbox.org")) +(setq org-directory "~/ownCloud/org/") +(setq org-default-notes-file "~/ownCloud/org/inbox.org") +(setq org-agenda-files '("~/ownCloud/org/inbox.org")) ;; support selecting lines by using shift (setq org-support-shift-select t) @@ -208,9 +203,9 @@ If point was already at that position, move point to beginning of line." (setq org-blank-before-new-entry '((heading . t) (plain-list-item . t))) (setq org-refile-targets - `((("~/org/inbox.org" - "~/org/computing.org" - "~/org/todos.org") + `((("~/ownCloud/org/inbox.org" + "~/ownCloud/org/computing.org" + "~/ownCloud/org/todos.org") . (:maxlevel . 5)))) ;; org-todo-keywords @@ -249,6 +244,23 @@ If point was already at that position, move point to beginning of line." (with-eval-after-load 'ox (require 'ox-hugo)) + +;;;; org-roam +(setq org-roam-directory "~/ownCloud/org-roam") +(org-roam-db-autosync-mode) + +;; org-roam-ui +(use-package! websocket + :after org-roam) + +(use-package! org-roam-ui + :after org-roam + :config + (setq org-roam-ui-sync-theme t + org-roam-ui-follow nil + org-roam-ui-update-on-save t + org-roam-ui-open-on-start t)) + ;; colorize compilation buffer ;; from https://sachachua.com/dotemacs/index.html#orga33bac5 (require 'ansi-color) diff --git a/doom/.doom.d/packages.el b/doom/.doom.d/packages.el index 2841aec..7fe17cd 100644 --- a/doom/.doom.d/packages.el +++ b/doom/.doom.d/packages.el @@ -19,10 +19,13 @@ (package! helpful) (package! just-mode) (package! license-templates) -(package! mastodon) +(unpin! org-roam) +(package! org-roam) +(package! org-roam-ui) (package! org-superstar) (package! ox-hugo) (package! pdf-tools) (package! shell-pop) (package! systemd) (package! undo-tree) +(package! websocket)