This commit is contained in:
Jeffrey Serio 2024-11-24 04:06:21 -06:00
parent 51ba8e5a9e
commit 76ceb8fc8c
3 changed files with 30 additions and 15 deletions

View File

@ -63,7 +63,7 @@ deleted = 'x'
[golang]
symbol = 'go: '
format = '[$symbol($version )($style)'
format = '[$symbol($version )]($style)'
[nix_shell]
symbol = 'nix: '

View File

@ -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)

View File

@ -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)