Compare commits
No commits in common. "9fe6381afd2ecb14194cafd7de91bc05bc35863f" and "dddc309e9e775069ae09de320668bb3ec8667745" have entirely different histories.
9fe6381afd
...
dddc309e9e
3 changed files with 74 additions and 96 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2023.0615.233447
|
;; Version: 2023.0525.151855
|
||||||
;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame)
|
;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -432,8 +432,6 @@ _s_: String list"
|
||||||
(global-set-key (kbd "M-8") (keymap-lookup global-map "C-x 8"))
|
(global-set-key (kbd "M-8") (keymap-lookup global-map "C-x 8"))
|
||||||
(global-set-key (kbd "C-x 8") (lambda () (interactive) (error "Use M-8 instead")))
|
(global-set-key (kbd "C-x 8") (lambda () (interactive) (error "Use M-8 instead")))
|
||||||
|
|
||||||
(global-set-key (kbd "M-8 l") "λ")
|
|
||||||
|
|
||||||
(defun oni-core-related-files ()
|
(defun oni-core-related-files ()
|
||||||
"Return a list of files related to the current buffer."
|
"Return a list of files related to the current buffer."
|
||||||
(let* ((jumpers related-files-jumpers)
|
(let* ((jumpers related-files-jumpers)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2023.0615.232817
|
;; Version: 2021.1123.003553
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
;; it under the terms of the GNU General Public License as published by
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -47,7 +47,5 @@
|
||||||
|
|
||||||
(add-to-list 'grep-find-ignored-directories ".cask")
|
(add-to-list 'grep-find-ignored-directories ".cask")
|
||||||
|
|
||||||
(add-hook 'grep-mode-hook 'hl-line-mode)
|
|
||||||
|
|
||||||
(provide 'oni-grep)
|
(provide 'oni-grep)
|
||||||
;;; oni-grep.el ends here
|
;;; oni-grep.el ends here
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2023.0621.002708
|
;; Version: 2023.0613.234632
|
||||||
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-bullets org-edna diminish all-the-icons olivetti form-feed org-pretty-table)
|
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-bullets org-edna diminish all-the-icons olivetti form-feed org-pretty-table)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -1162,118 +1162,100 @@ This is done by adding a ‘:hidden t’ header argument to the code block."
|
||||||
,(/ (length text) 2)))))
|
,(/ (length text) 2)))))
|
||||||
text))
|
text))
|
||||||
|
|
||||||
(defmacro oni-org--map-put (collection key value)
|
(setf (map-elt org-agenda-custom-commands "o")
|
||||||
"The result of ‘(setf (map-elt ...) ...)’ on a list.
|
'("Overview" ((tags-todo "TODO=\"WAITING\""
|
||||||
Trying to byte-compile the above form doesn't work at the moment.
|
((org-agenda-overriding-header (oni-org--center-align "Waiting"))))
|
||||||
This is a temporary hack to make sure I don't have to repeat this
|
(tags-todo "TODO=\"WIP\""
|
||||||
same code all the time."
|
((org-agenda-overriding-header (oni-org--center-align "In Progress"))))
|
||||||
(declare (indent 2))
|
(agenda "" ((org-agenda-span 'day)))
|
||||||
(let ((key-name (gensym))
|
(tags-todo "TODO=\"TODO\"+#todo"
|
||||||
(value-name (gensym)))
|
((org-agenda-max-todos 10)
|
||||||
`(let ((,key-name ,key)
|
(org-agenda-overriding-header (oni-org--center-align "To Do"))))
|
||||||
(,value-name ,value))
|
(tags-todo "TODO=\"TODO\"+#reading"
|
||||||
(condition-case nil
|
((org-agenda-max-todos 5)
|
||||||
(with-no-warnings
|
(org-agenda-overriding-header (oni-org--center-align "Read"))))
|
||||||
(map-put! ,collection ,key-name ,value-name nil))
|
(tags-todo "TODO=\"TODO\"+#watching"
|
||||||
(map-not-inplace
|
((org-agenda-max-todos 5)
|
||||||
(setq ,collection
|
(org-agenda-overriding-header (oni-org--center-align "Watch"))))
|
||||||
(map-insert ,collection ,key-name ,value-name))
|
(tags-todo "TODO=\"TODO\"+#listening"
|
||||||
,value-name)))))
|
((org-agenda-max-todos 5)
|
||||||
|
(org-agenda-overriding-header (oni-org--center-align "Listen")))))))
|
||||||
|
|
||||||
(oni-org--map-put org-agenda-custom-commands "o"
|
(setf (map-elt org-agenda-custom-commands "t")
|
||||||
'("Overview" ((tags-todo "TODO=\"WAITING\""
|
'("To Do" ((tags-todo "TODO=\"WAITING\"+#todo"
|
||||||
((org-agenda-overriding-header (oni-org--center-align "Waiting"))))
|
((org-agenda-overriding-header (oni-org--center-align "Waiting To Do"))))
|
||||||
(tags-todo "TODO=\"WIP\""
|
(tags-todo "TODO=\"WIP\"+#todo"
|
||||||
((org-agenda-overriding-header (oni-org--center-align "In Progress"))))
|
((org-agenda-overriding-header (oni-org--center-align "Doing"))))
|
||||||
(agenda "" ((org-agenda-span 'day)))
|
(tags-todo "TODO=\"TODO\"+#todo"
|
||||||
(tags-todo "TODO=\"TODO\"+#todo"
|
((org-agenda-overriding-header (oni-org--center-align "To Do")))))))
|
||||||
((org-agenda-max-todos 10)
|
|
||||||
(org-agenda-overriding-header (oni-org--center-align "To Do"))))
|
|
||||||
(tags-todo "TODO=\"TODO\"+#reading"
|
|
||||||
((org-agenda-max-todos 5)
|
|
||||||
(org-agenda-overriding-header (oni-org--center-align "Read"))))
|
|
||||||
(tags-todo "TODO=\"TODO\"+#watching"
|
|
||||||
((org-agenda-max-todos 5)
|
|
||||||
(org-agenda-overriding-header (oni-org--center-align "Watch"))))
|
|
||||||
(tags-todo "TODO=\"TODO\"+#listening"
|
|
||||||
((org-agenda-max-todos 5)
|
|
||||||
(org-agenda-overriding-header (oni-org--center-align "Listen")))))))
|
|
||||||
|
|
||||||
(oni-org--map-put org-agenda-custom-commands "t"
|
(setf (map-elt org-agenda-custom-commands "r")
|
||||||
'("To Do" ((tags-todo "TODO=\"WAITING\"+#todo"
|
'("Reading" ((tags-todo "TODO=\"WAITING\"+#reading"
|
||||||
((org-agenda-overriding-header (oni-org--center-align "Waiting To Do"))))
|
((org-agenda-overriding-header (oni-org--center-align "Waiting To Read"))))
|
||||||
(tags-todo "TODO=\"WIP\"+#todo"
|
(tags-todo "TODO=\"WIP\"+#reading"
|
||||||
((org-agenda-overriding-header (oni-org--center-align "Doing"))))
|
((org-agenda-overriding-header (oni-org--center-align "Reading"))))
|
||||||
(tags-todo "TODO=\"TODO\"+#todo"
|
(tags-todo "TODO=\"TODO\"+#reading"
|
||||||
((org-agenda-overriding-header (oni-org--center-align "To Do")))))))
|
((org-agenda-overriding-header (oni-org--center-align "To Read")))))))
|
||||||
|
|
||||||
(oni-org--map-put org-agenda-custom-commands "r"
|
(setf (map-elt org-agenda-custom-commands "w")
|
||||||
'("Reading" ((tags-todo "TODO=\"WAITING\"+#reading"
|
'("Watching" ((tags-todo "TODO=\"WAITING\"+#watching"
|
||||||
((org-agenda-overriding-header (oni-org--center-align "Waiting To Read"))))
|
((org-agenda-overriding-header (oni-org--center-align "Waiting To Watch"))))
|
||||||
(tags-todo "TODO=\"WIP\"+#reading"
|
(tags-todo "TODO=\"WIP\"+#watching"
|
||||||
((org-agenda-overriding-header (oni-org--center-align "Reading"))))
|
((org-agenda-overriding-header (oni-org--center-align "Watching"))))
|
||||||
(tags-todo "TODO=\"TODO\"+#reading"
|
(tags-todo "TODO=\"TODO\"+#watching"
|
||||||
((org-agenda-overriding-header (oni-org--center-align "To Read")))))))
|
((org-agenda-overriding-header (oni-org--center-align "To Watch")))))))
|
||||||
|
|
||||||
(oni-org--map-put org-agenda-custom-commands "w"
|
(setf (map-elt org-agenda-custom-commands "l")
|
||||||
'("Watching" ((tags-todo "TODO=\"WAITING\"+#watching"
|
'("Listening" ((tags-todo "TODO=\"WAITING\"+#listening"
|
||||||
((org-agenda-overriding-header (oni-org--center-align "Waiting To Watch"))))
|
((org-agenda-overriding-header (oni-org--center-align "Waiting To Listen To"))))
|
||||||
(tags-todo "TODO=\"WIP\"+#watching"
|
(tags-todo "TODO=\"WIP\"+#listening"
|
||||||
((org-agenda-overriding-header (oni-org--center-align "Watching"))))
|
((org-agenda-overriding-header (oni-org--center-align "Listening"))))
|
||||||
(tags-todo "TODO=\"TODO\"+#watching"
|
(tags-todo "TODO=\"TODO\"+#listening"
|
||||||
((org-agenda-overriding-header (oni-org--center-align "To Watch")))))))
|
((org-agenda-overriding-header (oni-org--center-align "To Listen To")))))))
|
||||||
|
|
||||||
(oni-org--map-put org-agenda-custom-commands "l"
|
(setf (map-elt org-capture-templates "sE")
|
||||||
'("Listening" ((tags-todo "TODO=\"WAITING\"+#listening"
|
'("Questions for Emacs packages" plain (function ignore)
|
||||||
((org-agenda-overriding-header (oni-org--center-align "Waiting To Listen To"))))
|
"- Do I want to integrate this in my configuration?
|
||||||
(tags-todo "TODO=\"WIP\"+#listening"
|
|
||||||
((org-agenda-overriding-header (oni-org--center-align "Listening"))))
|
|
||||||
(tags-todo "TODO=\"TODO\"+#listening"
|
|
||||||
((org-agenda-overriding-header (oni-org--center-align "To Listen To")))))))
|
|
||||||
|
|
||||||
(oni-org--map-put org-capture-templates "sE"
|
|
||||||
'("Questions for Emacs packages" plain (function ignore)
|
|
||||||
"- Do I want to integrate this in my configuration?
|
|
||||||
- %?
|
- %?
|
||||||
- What will it add / What advantage will it bring?
|
- What will it add / What advantage will it bring?
|
||||||
-
|
-
|
||||||
- How would I integrate it with my config?
|
- How would I integrate it with my config?
|
||||||
- "
|
- "
|
||||||
:empty-lines 1
|
:empty-lines 1
|
||||||
:immediate-finish t
|
:immediate-finish t
|
||||||
:jump-to-captured t))
|
:jump-to-captured t))
|
||||||
(oni-org--map-put org-capture-templates-contexts "sE"
|
(setf (map-elt org-capture-templates-contexts "sE")
|
||||||
'(((in-mode . "org-mode"))))
|
'(((in-mode . "org-mode"))))
|
||||||
|
|
||||||
(oni-org--map-put org-capture-templates "se"
|
(setf (map-elt org-capture-templates "se")
|
||||||
'("Questions for Emacs articles" plain (function ignore)
|
'("Questions for Emacs articles" plain (function ignore)
|
||||||
"- What can I add to my config from this?
|
"- What can I add to my config from this?
|
||||||
- %?"
|
- %?"
|
||||||
:empty-lines 1
|
:empty-lines 1
|
||||||
:immediate-finish t
|
:immediate-finish t
|
||||||
:jump-to-captured t))
|
:jump-to-captured t))
|
||||||
(oni-org--map-put org-capture-templates-contexts "se"
|
(setf (map-elt org-capture-templates-contexts "se")
|
||||||
'(((in-mode . "org-mode"))))
|
'(((in-mode . "org-mode"))))
|
||||||
|
|
||||||
(oni-org--map-put org-capture-templates "s"
|
(setf (map-elt org-capture-templates "s")
|
||||||
'("Snippets"))
|
'("Snippets"))
|
||||||
(oni-org--map-put org-capture-templates-contexts "s"
|
(setf (map-elt org-capture-templates-contexts "s")
|
||||||
'(((in-mode . "org-mode"))))
|
'(((in-mode . "org-mode"))))
|
||||||
|
|
||||||
(oni-org--map-put org-capture-templates "t"
|
(setf (map-elt org-capture-templates "t")
|
||||||
'("A simple TODO item." entry (file "") "* TODO %?
|
'("A simple TODO item." entry (file "") "* TODO %?
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CREATED: %U
|
:CREATED: %U
|
||||||
:END:"))
|
:END:"))
|
||||||
|
|
||||||
(oni-org--map-put org-capture-templates "U"
|
(setf (map-elt org-capture-templates "U")
|
||||||
'("A TODO capture from the browser." entry (file "") "* TODO %:description
|
'("A TODO capture from the browser." entry (file "") "* TODO %:description
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CREATED: %U
|
:CREATED: %U
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
%:link"
|
%:link"
|
||||||
:immediate-finish t))
|
:immediate-finish t))
|
||||||
|
|
||||||
(provide 'oni-org)
|
(provide 'oni-org)
|
||||||
;;; oni-org.el ends here
|
;;; oni-org.el ends here
|
||||||
|
|
Loading…
Reference in a new issue