Updated org mode for agenda stuff

This commit is contained in:
knit 2024-04-19 13:58:38 +02:00
parent 8ce68e986b
commit cf074be337
3 changed files with 44 additions and 20 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
auto-save-list
bookmarks
agenda/*

View File

@ -1,9 +1,18 @@
;; Orgmode configuration.
;; See docs/org.org for more info on why and how.
;; Just a function to put the current filename into the clipboard.
(defun my-filename ()
(interactive)
(if buffer-file-name
(progn
(kill-new buffer-file-name)
(message (concat "Copied: " buffer-file-name)))
(message "Not inside a file!")))
(use-package org
:bind (("C-c o" . 'org-capture)
("C-c O" . 'org-capture-goto-target)
("C-c k" . 'my-filename)
("C-c a" . 'org-agenda)
:map org-mode-map
("C-<return>" . org-open-at-point)
@ -12,10 +21,10 @@
:hook (org-mode . prettify-symbols-mode)
:hook (org-mode . org-indent-mode)
:hook (org-mode . (lambda ()
(setq prettify-symbols-alist
'(("#+begin_src" . ?ᐁ)
("#+end_src" . ?ᐃ)))
(electric-indent-mode nil)))
(setq prettify-symbols-alist
'(("#+begin_src" . ?ᐁ)
("#+end_src" . ?ᐃ)))))
:config
(setq
org-hide-emphasis-markers t
@ -28,21 +37,24 @@
org-todo-keywords '( "TODO(t)" "PROG(p)" "NEXT(n)" "WAIT(w)" "|" "DONE(d)" "HELD(h)")
org-use-fast-todo-selection t)
(setq org-capture-templates ; info org "capture templates"
;; Key Name Type Organization File Headline Text
'(("j" "Journal" entry (file+datetree "journ.org") "")
("p" "Poetry" entry (file+datetree "journ.org") "* %? :poem:\n %i ")
("l" "Link")
("lo" "Online" entry (file+headline "bookm.org" "Online") "* %A%?")
("lh" "Homes" entry (file+headline "bookm.org" "Homes") "* %A%?")
("ll" "local" entry (file+headline "bookm.org" "Online") "* %A%?")
("ln" "Nothin" entry (file+headline "bookm.org" "Nothin") "* %A%?")
("t" "Todo")
("tl" "Linked" entry (file+headline "notes.org" "Tasks") "* TODO %?\n %i\n [[%L][%f]]")
("tt" "Standard" entry (file+headline "notes.org" "Tasks") "* TODO %?")
("n" "Note")
("nn" "Note" entry (file+headline "notes.org" "Notes") "* %?\n%i")
("nl" "Linked" entry (file+headline "notes.org" "Notes") "* %?\n%i\n [[%L][%f]]"))))
(setq org-capture-templates ; info org "capture templates"
;; Key Name Type Organization File Headline Text
'(("j" "Journal" entry (file+datetree "journ.org") "")
("p" "Poetry" entry (file+datetree "journ.org") "* %? :poem:\n %i ")
("l" "Link")
("lo" "Online" entry (file+headline "bookm.org" "Online") "* %A%?")
("lh" "Homes" entry (file+headline "bookm.org" "Homes") "* %A%?")
("ll" "local" entry (file+headline "bookm.org" "Online") "* %A%?")
("ln" "Nothin" entry (file+headline "bookm.org" "Nothin") "* %A%?")
("t" "Todo")
("tl" "Linked" entry (file+headline "notes.org" "Tasks") "* TODO %?\n %i\n [[%L][%f]]")
("tt" "Standard" entry (file+headline "notes.org" "Tasks") "* TODO %?")
("n" "Note")
("nn" "Note" entry (file+headline "notes.org" "Notes") "* %?\n%i")
("nl" "Linked" entry (file+headline "notes.org" "Notes") "* %?\n%i\n [[%L][%f]]"))))
(use-package org-capture
:bind (("C-c O" . 'org-capture-goto-last-stored)))
;; Defining my todo labels
(use-package org-agenda

9
docs/magit.org Normal file
View File

@ -0,0 +1,9 @@
** keys
- h - Show bindings
- C-x g - Open magit in git repo.
- p/n - up / down line
- s/u - stage / undo stage
- TAB - toggle section collapse
- c c - commit
- C-c C-c - Send commit message & create
- d - diff