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] [golang]
symbol = 'go: ' symbol = 'go: '
format = '[$symbol($version )($style)' format = '[$symbol($version )]($style)'
[nix_shell] [nix_shell]
symbol = 'nix: ' symbol = 'nix: '

View File

@ -100,13 +100,8 @@ Version 2015-08-22"
(kill-new (buffer-string)) (kill-new (buffer-string))
(delete-region (point-min) (point-max))))) (delete-region (point-min) (point-max)))))
;; open URL in Firefox/LibreWolf ;; open links in default browser
(defun browse-host-web (url) (setq browse-url-browser-function 'browse-url-default-browser)
"Browse URL with Firefox/LibreWolf/IceCat"
(interactive "sURL: ")
(shell-command (concat "librewolf " url)))
(setq browse-url-browser-function 'browse-host-web)
;; after copy Ctrl+c in Linux X11, you can paste by `yank' in emacs ;; after copy Ctrl+c in Linux X11, you can paste by `yank' in emacs
(setq select-enable-clipboard t) (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 (eval-after-load 'org
'(org-load-modules-maybe t)) '(org-load-modules-maybe t))
(setq org-directory "~/org/") (setq org-directory "~/ownCloud/org/")
(setq org-default-notes-file "~/org/inbox.org") (setq org-default-notes-file "~/ownCloud/org/inbox.org")
(setq org-agenda-files '("~/org/inbox.org")) (setq org-agenda-files '("~/ownCloud/org/inbox.org"))
;; support selecting lines by using shift ;; support selecting lines by using shift
(setq org-support-shift-select t) (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-blank-before-new-entry '((heading . t) (plain-list-item . t)))
(setq org-refile-targets (setq org-refile-targets
`((("~/org/inbox.org" `((("~/ownCloud/org/inbox.org"
"~/org/computing.org" "~/ownCloud/org/computing.org"
"~/org/todos.org") "~/ownCloud/org/todos.org")
. (:maxlevel . 5)))) . (:maxlevel . 5))))
;; org-todo-keywords ;; 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 (with-eval-after-load 'ox
(require 'ox-hugo)) (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 ;; colorize compilation buffer
;; from https://sachachua.com/dotemacs/index.html#orga33bac5 ;; from https://sachachua.com/dotemacs/index.html#orga33bac5
(require 'ansi-color) (require 'ansi-color)

View File

@ -19,10 +19,13 @@
(package! helpful) (package! helpful)
(package! just-mode) (package! just-mode)
(package! license-templates) (package! license-templates)
(package! mastodon) (unpin! org-roam)
(package! org-roam)
(package! org-roam-ui)
(package! org-superstar) (package! org-superstar)
(package! ox-hugo) (package! ox-hugo)
(package! pdf-tools) (package! pdf-tools)
(package! shell-pop) (package! shell-pop)
(package! systemd) (package! systemd)
(package! undo-tree) (package! undo-tree)
(package! websocket)