update init.el

This commit is contained in:
Sakooooo 2023-09-27 13:15:29 +00:00
parent 0f8719e89b
commit d37b2702c9
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -216,12 +216,19 @@
;; archive thingy i forgot
(setq org-refile-targets
'(("Archive.org" :maxlevel . 1)
("Tasks.org" :maxlevel . 1)))
'(("archive.org" :maxlevel . 1)))
;; save org buffer before refile
(advice-add 'org-refile :after 'org-save-all-org-buffers)
;; org agenda files
(setq org-agenda-files
'("~/org/tasks.org"
"~/org/school.org"
"~/org/daily.org"
"~/org/irl.org"
"~/org/work.org"))
;; org mode src thing
(require 'org-tempo)
@ -234,8 +241,8 @@
(sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)" "WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANCELED(k@)")))
(setq org-refile-targets
'(("Archive.org" :maxlevel . 1)
("Tasks.org" :maxlevel . 1)))
'(("archive.org" :maxlevel . 1)
("tasks.org" :maxlevel . 1)))
;; Save Org buffers after refiling!
(advice-add 'org-refile :after 'org-save-all-org-buffers)
@ -346,6 +353,16 @@
(use-package visual-fill-column
:hook (org-mode . sakomacs/org-mode-visual-fill))
(use-package org-roam
:ensure t
:custom
(org-roam-directory "~/org"
: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))
:config
(org-roam-setup)))
(use-package treemacs
:ensure t
:defer t
@ -567,10 +584,6 @@
(setq auto-save-file-name-transforms
`((".*" ,(no-littering-expand-var-file-name "auto-save/") t)))
(use-package elcord
:init
(elcord-mode))
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)