mirror of https://github.com/Flinner/dots.git
feat: org-agenda setup
This commit is contained in:
parent
5484ce7925
commit
e1cad7ca20
|
@ -275,6 +275,7 @@ Single Esc to Quit, instead of *three*
|
||||||
** Function keys
|
** Function keys
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(global-set-key (kbd "M-<f8>") '(lambda () (interactive) (org-agenda nil "a")))
|
(global-set-key (kbd "M-<f8>") '(lambda () (interactive) (org-agenda nil "a")))
|
||||||
|
(global-set-key (kbd "<f8>" ) '(lambda () (interactive) (org-agenda nil "a")))
|
||||||
(global-set-key (kbd "M-<f6>") 'elfeed-dashboard)
|
(global-set-key (kbd "M-<f6>") 'elfeed-dashboard)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
@ -432,11 +433,11 @@ Capture
|
||||||
"b" '(:ignore t :which-key "buffers")
|
"b" '(:ignore t :which-key "buffers")
|
||||||
|
|
||||||
"bs" '(save-buffer :which-key "Save Buffer")
|
"bs" '(save-buffer :which-key "Save Buffer")
|
||||||
"bk" '(kill-this-buffer :which-key "Kill Buffer")
|
"bk" '(kill-current-buffer :which-key "Kill Buffer")
|
||||||
"bl" '(evil-switch-to-windows-last-buffer :which-key "Last Buffer")
|
"bl" '(evil-switch-to-windows-last-buffer :which-key "Last Buffer")
|
||||||
"bi" '(ibuffer :which-key "Ibuffer")
|
"bi" '(ibuffer :which-key "Ibuffer")
|
||||||
"br" '(revert-buffer :which-key "Ibuffer")
|
"br" '(revert-buffer :which-key "Revert Buffer")
|
||||||
"bb" '(switch-to-buffer :which-key "Ibuffer")
|
"bb" '(switch-to-buffer :which-key "Switch to buffer")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** Windows (w)
|
**** Windows (w)
|
||||||
|
@ -841,43 +842,44 @@ Modes To Start
|
||||||
#+end_src
|
#+end_src
|
||||||
use-package
|
use-package
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package org
|
(use-package org
|
||||||
:defer t
|
:defer t
|
||||||
:hook (org-mode . my/org-mode/org-mode-setup)
|
:hook (org-mode . my/org-mode/org-mode-setup)
|
||||||
(org-mode . my/org-mode/load-prettify-symbols); symbols
|
(org-mode . my/org-mode/load-prettify-symbols); symbols
|
||||||
(org-mode . auto-fill-mode)
|
(org-mode . auto-fill-mode)
|
||||||
:config
|
:config
|
||||||
(require 'org-tempo)
|
(require 'org-tempo)
|
||||||
(require 'org-habit)
|
(require 'org-habit)
|
||||||
(setq geiser-default-implementation 'guile)
|
(setq geiser-default-implementation 'guile)
|
||||||
(setq org-ellipsis " ⤵")
|
(setq org-ellipsis " ⤵")
|
||||||
(setq org-agenda-start-with-log-mode t)
|
(setq org-agenda-start-with-log-mode t)
|
||||||
(setq org-highlight-latex-and-related '(latex))
|
(setq org-highlight-latex-and-related '(latex))
|
||||||
(setq org-log-done 'time)
|
(setq org-log-done 'time)
|
||||||
(setq org-log-into-drawer t)
|
(setq org-log-into-drawer t)
|
||||||
(dolist (face '((org-document-title . 2.0)
|
(dolist (face '((org-document-title . 2.0)
|
||||||
(org-level-1 . 1.2)
|
(org-level-1 . 1.2)
|
||||||
(org-level-2 . 1.1)
|
(org-level-2 . 1.1)
|
||||||
(org-level-3 . 1.05)
|
(org-level-3 . 1.05)
|
||||||
(org-level-4 . 1.0)
|
(org-level-4 . 1.0)
|
||||||
(org-level-5 . 1.1)
|
(org-level-5 . 1.1)
|
||||||
(org-level-6 . 1.1)
|
(org-level-6 . 1.1)
|
||||||
(org-level-7 . 1.1)
|
(org-level-7 . 1.1)
|
||||||
(org-level-8 . 1.1)))
|
(org-level-8 . 1.1)))
|
||||||
;; (set-face-attribute (car face) nil :font my/ui/varfont :weight 'regular :height (cdr face)))
|
;; (set-face-attribute (car face) nil :font my/ui/varfont :weight 'regular :height (cdr face)))
|
||||||
(set-face-attribute (car face) nil :font my/ui/varfont :weight 'regular :height (cdr face)))
|
(set-face-attribute (car face) nil :font my/ui/varfont :weight 'regular :height (cdr face)))
|
||||||
;)
|
;)
|
||||||
|
|
||||||
|
|
||||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
|
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
|
||||||
;; Ensure that anything that should be fixed-pitch in Org files appears that way
|
;; Ensure that anything that should be fixed-pitch in Org files appears that way
|
||||||
(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch)
|
(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch)
|
||||||
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
|
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
|
||||||
(set-face-attribute 'org-table nil :inherit '(shadow fixed-pitch))
|
(set-face-attribute 'org-table nil :inherit '(shadow fixed-pitch))
|
||||||
(set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch))
|
(set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch))
|
||||||
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
|
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||||
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
|
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||||
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch))
|
(set-face-attribute 'org-todo nil :background "#444527" )
|
||||||
|
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Templates
|
Templates
|
||||||
|
@ -1055,7 +1057,6 @@ From: https://yiufung.net/post/anki-org/
|
||||||
*** T/ODOs
|
*** T/ODOs
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq org-todo-keywords '((sequence "TODO(t)" "|" "DONE(d)")
|
(setq org-todo-keywords '((sequence "TODO(t)" "|" "DONE(d)")
|
||||||
(sequence "BACKLOG(b)" "STARTED(s)" "WAITING(w)" "|")
|
|
||||||
(sequence "|" "CANCELED(c)")))
|
(sequence "|" "CANCELED(c)")))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
@ -1072,61 +1073,76 @@ From: https://yiufung.net/post/anki-org/
|
||||||
(evil-set-initial-state 'org-agenda-mode 'normal)
|
(evil-set-initial-state 'org-agenda-mode 'normal)
|
||||||
(evil-define-key 'normal org-agenda-mode-map
|
(evil-define-key 'normal org-agenda-mode-map
|
||||||
(kbd "<RET>") 'org-agenda-goto
|
(kbd "<RET>") 'org-agenda-goto
|
||||||
;; (kbd "\t") 'org-agenda-goto
|
;;;; (kbd "\t") 'org-agenda-goto
|
||||||
|
|
||||||
"q" 'org-agenda-quit
|
"q" 'org-agenda-quit
|
||||||
"r" 'org-agenda-redo
|
"r" 'org-agenda-redo
|
||||||
"S" 'org-save-all-org-buffers
|
"S" 'org-save-all-org-buffers
|
||||||
|
|
||||||
|
;;;; Clocking
|
||||||
|
"c" nil
|
||||||
|
"ci" 'org-agenda-clock-in
|
||||||
|
"co" 'org-agenda-clock-out
|
||||||
|
"cx" 'org-agenda-clock-cancel
|
||||||
|
"cR" 'org-agenda-clockreport-mode
|
||||||
|
|
||||||
|
;;;; Properties
|
||||||
|
"s" 'org-agenda-schedule
|
||||||
|
"d" 'org-agenda-deadline
|
||||||
|
"p" 'org-agenda-priority
|
||||||
|
"t" 'org-agenda-todo
|
||||||
|
":" 'org-agenda-set-tags
|
||||||
|
"e" 'org-agenda-set-effort
|
||||||
|
|
||||||
|
;;;; Movement
|
||||||
|
"j" 'org-agenda-next-line
|
||||||
|
"k" 'org-agenda-previous-line
|
||||||
|
"f" 'org-agenda-later
|
||||||
|
"b" 'org-agenda-earlier
|
||||||
|
"J" 'org-agenda-next-date-line
|
||||||
|
"K" 'org-agenda-previous-date-line
|
||||||
|
"." 'org-agenda-goto-today
|
||||||
|
|
||||||
|
;;;; View toggles
|
||||||
|
"vt" 'org-agenda-toggle-time-grid
|
||||||
|
"vw" 'org-agenda-week-view
|
||||||
|
"vd" 'org-agenda-day-view
|
||||||
|
"vl" 'org-agenda-log-mode
|
||||||
|
"F" 'org-agenda-follow-mode
|
||||||
|
|
||||||
|
;;;; Other
|
||||||
|
"C" 'org-capture
|
||||||
|
"g/" 'org-agenda-filter-by-tag
|
||||||
|
|
||||||
|
;;;; cool but inactive
|
||||||
;; "gj" 'org-agenda-goto-date
|
;; "gj" 'org-agenda-goto-date
|
||||||
;; "gJ" 'org-agenda-clock-goto
|
;; "gJ" 'org-agenda-clock-goto
|
||||||
;; "gm" 'org-agenda-bulk-mark
|
;; "gm" 'org-agenda-bulk-mark
|
||||||
;; "go" 'org-agenda-open-link
|
;; "go" 'org-agenda-open-link
|
||||||
"s" 'org-agenda-schedule
|
|
||||||
;; "+" 'org-agenda-priority-up
|
;; "+" 'org-agenda-priority-up
|
||||||
"p" 'org-agenda-priority
|
|
||||||
;; "-" 'org-agenda-priority-down
|
;; "-" 'org-agenda-priority-down
|
||||||
;; "y" 'org-agenda-todo-yesterday
|
;; "y" 'org-agenda-todo-yesterday
|
||||||
;; "n" 'org-agenda-add-note
|
;; "n" 'org-agenda-add-note
|
||||||
"t" 'org-agenda-todo
|
|
||||||
":" 'org-agenda-set-tags
|
|
||||||
;; ";" 'org-timer-set-timer
|
;; ";" 'org-timer-set-timer
|
||||||
;; "I" 'helm-org-task-file-headings
|
;; "I" 'helm-org-task-file-headings
|
||||||
;; "i" 'org-agenda-clock-in-avy
|
;; "i" 'org-agenda-clock-in-avy
|
||||||
;; "O" 'org-agenda-clock-out-avy
|
;; "O" 'org-agenda-clock-out-avy
|
||||||
;; "u" 'org-agenda-bulk-unmark
|
;; "u" 'org-agenda-bulk-unmark
|
||||||
;; "x" 'org-agenda-exit
|
;; "x" 'org-agenda-exit
|
||||||
"j" 'org-agenda-next-line
|
|
||||||
"k" 'org-agenda-previous-line
|
|
||||||
"vt" 'org-agenda-toggle-time-grid
|
|
||||||
;; "va" 'org-agenda-archives-mode
|
;; "va" 'org-agenda-archives-mode
|
||||||
"vw" 'org-agenda-week-view
|
;;"vc" 'org-agenda-show-clocking-issues
|
||||||
"vd" 'org-agenda-day-view
|
|
||||||
;; "vl" 'org-agenda-log-mode
|
|
||||||
;; "vc" 'org-agenda-show-clocking-issues
|
|
||||||
"g/" 'org-agenda-filter-by-tag
|
|
||||||
;; "o" 'delete-other-windows
|
;; "o" 'delete-other-windows
|
||||||
;; "gh" 'org-agenda-holiday
|
;; "gh" 'org-agenda-holiday
|
||||||
;; "gv" 'org-agenda-view-mode-dispatch
|
;; "gv" 'org-agenda-view-mode-dispatch
|
||||||
"f" 'org-agenda-later
|
|
||||||
"b" 'org-agenda-earlier
|
|
||||||
"c" 'org-capture
|
|
||||||
"e" 'org-agenda-set-effort
|
|
||||||
"n" nil ; evil-search-next
|
"n" nil ; evil-search-next
|
||||||
;; "{" 'org-agenda-manipulate-query-add-re
|
;; "{" 'org-agenda-manipulate-query-add-re
|
||||||
;; "}" 'org-agenda-manipulate-query-subtract-re
|
;; "}" 'org-agenda-manipulate-query-subtract-re
|
||||||
;; "A" 'org-agenda-toggle-archive-tag
|
;; "A" 'org-agenda-toggle-archive-tag
|
||||||
"." 'org-agenda-goto-today
|
|
||||||
;; "0" 'evil-digit-argument-or-evil-beginning-of-line
|
;; "0" 'evil-digit-argument-or-evil-beginning-of-line
|
||||||
;; "<" 'org-agenda-filter-by-category
|
;; "<" 'org-agenda-filter-by-category
|
||||||
;; ">" 'org-agenda-date-prompt
|
;; ">" 'org-agenda-date-prompt
|
||||||
"F" 'org-agenda-follow-mode
|
|
||||||
"d" 'org-agenda-deadline
|
|
||||||
;; "H" 'org-agenda-holidays
|
;; "H" 'org-agenda-holidays
|
||||||
"J" 'org-agenda-next-date-line
|
|
||||||
"K" 'org-agenda-previous-date-line
|
|
||||||
;; "L" 'org-agenda-recenter
|
;; "L" 'org-agenda-recenter
|
||||||
"P" 'org-agenda-show-priority
|
|
||||||
;; "R" 'org-agenda-clockreport-mode
|
|
||||||
;; "Z" 'org-agenda-sunrise-sunset
|
;; "Z" 'org-agenda-sunrise-sunset
|
||||||
;; "T" 'org-agenda-show-tags
|
;; "T" 'org-agenda-show-tags
|
||||||
;; "X" 'org-agenda-clock-cancel
|
;; "X" 'org-agenda-clock-cancel
|
||||||
|
|
Loading…
Reference in New Issue