REF make tags dryer
This commit is contained in:
parent
a07b7df452
commit
d51313232b
60
etc/conf.org
60
etc/conf.org
|
@ -2149,52 +2149,46 @@ IDs and links are useful for meetings where I either reference tasks to discuss
|
||||||
I use tags for agenda filtering (primarily for GTD contexts, see below). Each tag here starts with a symbol to define its group (note, only the special chars "_", "@", "#", and "%" seem to be allowed; anything else will do weird things in the hotkey prompt). Some groups are mutually exclusive. By convention, any tag not part of these groups is ALLCAPS (not very common) and set at the file level.
|
I use tags for agenda filtering (primarily for GTD contexts, see below). Each tag here starts with a symbol to define its group (note, only the special chars "_", "@", "#", and "%" seem to be allowed; anything else will do weird things in the hotkey prompt). Some groups are mutually exclusive. By convention, any tag not part of these groups is ALLCAPS (not very common) and set at the file level.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq org-tag-alist
|
(setq org-tag-alist
|
||||||
;; (@) gtd location context
|
;; gtd location context
|
||||||
`((:startgroup)
|
`((:startgroup)
|
||||||
("@errand" . ?e)
|
(,org-x-tag-errand . ?e)
|
||||||
("@home" . ?h)
|
(,org-x-tag-home . ?h)
|
||||||
("@work" . ?w)
|
(,org-x-tag-work . ?w)
|
||||||
("@travel" . ?r)
|
(,org-x-tag-travel . ?r)
|
||||||
(:endgroup)
|
(:endgroup)
|
||||||
|
|
||||||
;; (#) gtd resource context
|
;; gtd resource context
|
||||||
("#laptop" . ?l)
|
(,org-x-tag-laptop . ?l)
|
||||||
("#tcult" . ?t)
|
(,org-x-tag-tcult . ?t)
|
||||||
("#phone" . ?p)
|
(,org-x-tag-phone . ?p)
|
||||||
|
|
||||||
;; (%) misc tags
|
;; misc tags
|
||||||
;; denotes reference information
|
;; denotes reference information
|
||||||
("%note" . ?n)
|
(,org-x-tag-note . ?n)
|
||||||
|
|
||||||
;; incubator (the someday/maybe list)
|
;; incubator (the someday/maybe list)
|
||||||
("%inc" . ?i)
|
(,org-x-tag-incubated . ?i)
|
||||||
|
|
||||||
;; maybe (for things I might want to do, to be used with %inc)
|
;; maybe (for things I might want to do, to be used with
|
||||||
("%maybe" . ?m)
|
;; `org-x-tag-incubated')
|
||||||
|
(,org-x-tag-maybe . ?m)
|
||||||
|
|
||||||
;; denotes tasks that need further subdivision to turn into true project
|
;; denotes tasks that need further subdivision to turn into true project
|
||||||
("%subdiv" . ?s)
|
(,org-x-tag-subdivision . ?s)
|
||||||
|
|
||||||
;; catchall to mark important headings, usually for meetings
|
;; catchall to mark important headings, usually for meetings
|
||||||
("%flag" . ?f)
|
(,org-x-tag-flagged . ?f)
|
||||||
|
|
||||||
;; taskjuggler
|
|
||||||
;; (:startgroup)
|
|
||||||
;; (,org-tj-project-tag . ?x)
|
|
||||||
;; (,org-tj-resource-tag . ?y)
|
|
||||||
;; (,org-tj-report-tag . ?z)
|
|
||||||
;; (:endgroup)
|
|
||||||
|
|
||||||
;; (_) life categories, used for gtd priorities
|
;; life categories, used for gtd priorities
|
||||||
(:startgroup)
|
(:startgroup)
|
||||||
("_env" . ?E) ;; environmental
|
(,org-x-tag-environmental . ?E)
|
||||||
("_fin" . ?F) ;; financial
|
(,org-x-tag-financial . ?F)
|
||||||
("_int" . ?I) ;; intellectual
|
(,org-x-tag-intellectual . ?I)
|
||||||
("_met" . ?M) ;; metaphysical
|
(,org-x-tag-metaphysical . ?M)
|
||||||
("_phy" . ?H) ;; physical
|
(,org-x-tag-physical . ?H)
|
||||||
("_pro" . ?P) ;; professional
|
(,org-x-tag-professional . ?P)
|
||||||
("_rec" . ?R) ;; recreational
|
(,org-x-tag-recreational . ?R)
|
||||||
("_soc" . ?S) ;; social
|
(,org-x-tag-social . ?S)
|
||||||
(:endgroup)))
|
(:endgroup)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
**** colors
|
**** colors
|
||||||
|
@ -2398,7 +2392,7 @@ The modeline is a nice place to indicate if something is clocked in or out. Unfo
|
||||||
|
|
||||||
(setq spaceline-highlight-face-func 'nd/spaceline-highlight-face-clocked)
|
(setq spaceline-highlight-face-func 'nd/spaceline-highlight-face-clocked)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** clustering
|
*** aggregation
|
||||||
Org mode has no way of detecting if conflicts exist. It also has no way of alerting someone if they have overbooked their schedule.
|
Org mode has no way of detecting if conflicts exist. It also has no way of alerting someone if they have overbooked their schedule.
|
||||||
|
|
||||||
The main code is defined in =org-x= so the following is only to set some domain-specific options.
|
The main code is defined in =org-x= so the following is only to set some domain-specific options.
|
||||||
|
|
|
@ -36,6 +36,104 @@
|
||||||
(require 'org)
|
(require 'org)
|
||||||
(require 'org-x-agg)
|
(require 'org-x-agg)
|
||||||
|
|
||||||
|
|
||||||
|
;;; TAGS
|
||||||
|
|
||||||
|
(defconst org-x-tag-location-context-prefix ?@
|
||||||
|
"Prefix character denoting location context tag.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-resource-context-prefix ?#
|
||||||
|
"Prefix character denoting resource context tag.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-misc-prefix ?%
|
||||||
|
"Prefix character denoting misc tag.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-category-prefix ?_
|
||||||
|
"Prefix character denoting life category tag.")
|
||||||
|
|
||||||
|
(defun org-x-prefix-string (char string)
|
||||||
|
(concat (char-to-string char) string))
|
||||||
|
|
||||||
|
(defconst org-x-tag-errand
|
||||||
|
(org-x-prefix-string org-x-tag-location-context-prefix "errand")
|
||||||
|
"Tag denoting an errand location.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-home
|
||||||
|
(org-x-prefix-string org-x-tag-location-context-prefix "home")
|
||||||
|
"Tag denoting a home location.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-work
|
||||||
|
(org-x-prefix-string org-x-tag-location-context-prefix "work")
|
||||||
|
"Tag denoting a work location.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-travel
|
||||||
|
(org-x-prefix-string org-x-tag-location-context-prefix "travel")
|
||||||
|
"Tag denoting a travel location.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-laptop
|
||||||
|
(org-x-prefix-string org-x-tag-resource-context-prefix "laptop")
|
||||||
|
"Tag denoting a laptop resource.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-tcult
|
||||||
|
(org-x-prefix-string org-x-tag-resource-context-prefix "tcult")
|
||||||
|
"Tag denoting a tissue-culture resource.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-phone
|
||||||
|
(org-x-prefix-string org-x-tag-resource-context-prefix "phone")
|
||||||
|
"Tag denoting a phone resource.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-note
|
||||||
|
(org-x-prefix-string org-x-tag-misc-prefix "note")
|
||||||
|
"Tag denoting a note.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-incubated
|
||||||
|
(org-x-prefix-string org-x-tag-misc-prefix "inc")
|
||||||
|
"Tag denoting an incubated task.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-maybe
|
||||||
|
(org-x-prefix-string org-x-tag-misc-prefix "maybe")
|
||||||
|
"Tag denoting a maybe task.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-subdivision
|
||||||
|
(org-x-prefix-string org-x-tag-misc-prefix "subdiv")
|
||||||
|
"Tag denoting a task awaiting subdivision.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-flagged
|
||||||
|
(org-x-prefix-string org-x-tag-misc-prefix "flag")
|
||||||
|
"Tag denoting a flagged task.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-environmental
|
||||||
|
(org-x-prefix-string org-x-tag-category-prefix "env")
|
||||||
|
"Tag denoting an environmental life category.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-financial
|
||||||
|
(org-x-prefix-string org-x-tag-category-prefix "fin")
|
||||||
|
"Tag denoting a financial life category.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-intellectual
|
||||||
|
(org-x-prefix-string org-x-tag-category-prefix "int")
|
||||||
|
"Tag denoting an intellectual life category.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-metaphysical
|
||||||
|
(org-x-prefix-string org-x-tag-category-prefix "met")
|
||||||
|
"Tag denoting an metaphysical life category.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-physical
|
||||||
|
(org-x-prefix-string org-x-tag-category-prefix "phy")
|
||||||
|
"Tag denoting an physical life category.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-professional
|
||||||
|
(org-x-prefix-string org-x-tag-category-prefix "pro")
|
||||||
|
"Tag denoting a professional life category.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-recreational
|
||||||
|
(org-x-prefix-string org-x-tag-category-prefix "rec")
|
||||||
|
"Tag denoting a recreational life category.")
|
||||||
|
|
||||||
|
(defconst org-x-tag-social
|
||||||
|
(org-x-prefix-string org-x-tag-category-prefix "soc")
|
||||||
|
"Tag denoting a social life category.")
|
||||||
|
|
||||||
;;; PROPERTIES
|
;;; PROPERTIES
|
||||||
|
|
||||||
(eval-and-compile
|
(eval-and-compile
|
||||||
|
@ -79,7 +177,6 @@
|
||||||
|
|
||||||
;;; CONSTANTS
|
;;; CONSTANTS
|
||||||
|
|
||||||
|
|
||||||
(defconst org-x-iter-future-time (* 7 24 60 60)
|
(defconst org-x-iter-future-time (* 7 24 60 60)
|
||||||
"Iterators must have at least one task greater into the future to be active.")
|
"Iterators must have at least one task greater into the future to be active.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue