org-mode/lisp
Christopher League c305bb7418 org-agenda: Allow org-agenda-overriding-header to be a function
* org-agenda.el (org-agenda--insert-overriding-header): Allow
`org-agenda-overriding-header' to be a function in addition to a
string or nil. When the custom agenda is created or updated, call that
function and insert the string it returns as the agenda header.

This allows custom commands to produce dynamic headers that include
up-to-date information. For example, this produces a header with a
current timestamp:

(push '("DHD" "Dynamic header demo"
        ((alltodo
          ""
          ((org-agenda-overriding-header
            (lambda ()
              (propertize
               (format-time-string "-- Get crackin’, it’s %H:%M:%S!!\n")
               'face 'org-agenda-structure)))))))
      org-agenda-custom-commands)

User is free to add any face properties, use Org links, and include a
blank line or not. I am using this to count how many items are in
various inboxes and display them in an agenda.
2021-09-27 11:59:33 +02:00
..
Makefile Move link-related core functions out of "org.el" 2019-03-10 18:00:27 +01:00
ob-awk.el lisp/ob-awk.el: Add Tyler Smith as the maintainer 2021-05-08 09:40:23 +02:00
ob-C.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ob-calc.el lisp/ob-calc.el: Add Tom Gillespie as the maintainer 2021-05-07 09:31:36 +02:00
ob-clojure.el Backport commit 8b07994e2 from Emacs 2021-03-25 00:56:53 -04:00
ob-comint.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ob-core.el ob-core: Make recent change compatible with older Emacs versions 2021-09-26 23:24:23 -04:00
ob-css.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-ditaa.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-dot.el Prefer HTTPS to HTTP in most links 2021-03-21 15:21:22 -04:00
ob-emacs-lisp.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-eshell.el Fix 108e5c7bd 2021-05-30 18:56:05 +02:00
ob-eval.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ob-exp.el ob-core.el: Add ability to use closures as default header arguments 2021-09-26 10:13:38 +02:00
ob-forth.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-fortran.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ob-gnuplot.el Allow :var header args to be assigned to cons cells 2021-09-26 10:21:20 +02:00
ob-groovy.el lisp/ob-groovy.el: Fix link 2021-05-03 14:59:44 +02:00
ob-haskell.el Fix org-babel-header-args:haskell not being an alist 2021-09-21 16:51:54 +08:00
ob-java.el Fix a small number of typos 2021-09-17 17:01:57 +08:00
ob-js.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ob-julia.el Include support for evaluating julia code 2021-09-25 16:00:02 +02:00
ob-latex.el Shorten remaining over-wide docstrings 2021-02-23 23:35:57 -05:00
ob-lilypond.el Allow user to set ob-lilypond header arguments 2021-04-26 10:26:07 +02:00
ob-lisp.el Prefer HTTPS to HTTP in most links 2021-03-21 15:21:22 -04:00
ob-lob.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-lua.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ob-makefile.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ob-matlab.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-maxima.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-ocaml.el ob-ocaml: Update stale tuareg-mode link in commentary 2021-03-29 00:33:49 -04:00
ob-octave.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ob-org.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-perl.el Merge branch 'maint' 2021-01-01 15:02:10 -05:00
ob-plantuml.el Fix 7da20ff21 2021-05-01 12:50:10 +02:00
ob-processing.el Prefer HTTPS to HTTP in most links 2021-03-21 15:21:22 -04:00
ob-python.el ob-comint.el, ob-python.el: Async session evaluation 2021-05-18 09:13:28 -07:00
ob-R.el lisp/ob-R.el: Fix session output with substrings matching prompts 2021-05-03 00:15:09 +02:00
ob-ref.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-ruby.el Prefer HTTPS to HTTP in most links 2021-03-21 15:21:22 -04:00
ob-sass.el Prefer HTTPS to HTTP in most links 2021-03-21 15:21:22 -04:00
ob-scheme.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ob-screen.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ob-sed.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-shell.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-sql.el ob-sql.el (org-babel-expand-body:sql): Support :prologue :epilogue 2021-09-26 07:50:47 +02:00
ob-sqlite.el lisp/*: Use version number when obsoleting 2021-05-16 09:54:28 +02:00
ob-stan.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ob-table.el Backport commit c78e16962 from Emacs 2021-09-26 22:49:55 -04:00
ob-tangle.el lisp/ob-tangle.el: Add variable declaration 2021-09-26 14:34:41 +02:00
ob.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
oc-basic.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
oc-biblatex.el Remove spurious `provide' 2021-08-11 11:31:54 +02:00
oc-csl.el oc-csl: Use citeproc-el to create CSL processor itemgetters 2021-09-26 12:35:39 +02:00
oc-natbib.el Remove spurious `provide' 2021-08-11 11:31:54 +02:00
oc.el oc: Replace an obsolete alias 2021-09-20 00:38:28 +02:00
ol-bbdb.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ol-bibtex.el Merge branch 'bugfix' 2021-09-26 08:57:27 +02:00
ol-docview.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-doi.el Add DOI links export 2021-04-18 14:02:06 +02:00
ol-eshell.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ol-eww.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-gnus.el Update Carsten's email address in some files 2021-05-07 16:50:57 +02:00
ol-info.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ol-irc.el Backport commit 348b2aed0 from Emacs 2021-07-11 22:40:57 -04:00
ol-mhe.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
ol-rmail.el Update Carsten's email address in some files 2021-05-07 16:50:57 +02:00
ol-w3m.el ol-w3m: handle w3m-image link information 2021-05-08 07:31:50 -04:00
ol.el Merge branch 'bugfix' 2021-09-25 18:17:46 +02:00
org-agenda.el org-agenda: Allow org-agenda-overriding-header to be a function 2021-09-27 11:59:33 +02:00
org-archive.el Update Carsten's email address in some files 2021-05-07 16:50:57 +02:00
org-attach-git.el lisp/org-attach-git.el: New option `org-attach-git-dir' 2021-05-15 16:13:49 +02:00
org-attach.el org-attach: Fix byte-comp function warning 2021-09-25 22:46:34 +02:00
org-capture.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
org-clock.el org-clock.el: Make org-notify support macOS notification 2021-09-26 10:52:32 +02:00
org-colview.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
org-compat.el org: Rename for more consistency 2021-09-20 00:27:02 +02:00
org-crypt.el Backport commit 7d0dc3183 from Emacs 2021-03-14 17:54:17 -04:00
org-ctags.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
org-datetree.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
org-duration.el duration: Avoid recursive load error 2021-01-04 00:30:00 -05:00
org-element.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
org-entities.el Update Carsten's email address in some files 2021-05-07 16:50:57 +02:00
org-faces.el Add faces to improve contextuality of agenda views 2021-09-26 10:44:14 +02:00
org-feed.el Update Carsten's email address in some files 2021-05-07 16:50:57 +02:00
org-footnote.el footnote: Allow inserting footnotes at the end of table cells 2021-07-29 21:15:11 +02:00
org-goto.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
org-habit.el Update copyright year to 2021 2021-01-01 14:59:01 -05:00
org-id.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
org-indent.el org-indent: Allow indentation per level to be 0 2021-09-25 16:40:28 +02:00
org-inlinetask.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
org-install.el Use lexical-binding cookie in some trivial files 2021-01-24 22:36:30 -05:00
org-keys.el Fix byte-comp function warnings 2021-09-25 21:31:25 +02:00
org-lint.el Move org-file-url-p' to "org-macs.el", rename it to org-url-p' 2021-05-18 16:31:39 +02:00
org-list.el Merge branch 'km/from-emacs-master' 2021-09-12 23:35:16 -04:00
org-macro.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
org-macs.el Merge branch 'bugfix' 2021-09-25 18:17:46 +02:00
org-mobile.el Update Carsten's email address in some files 2021-05-07 16:50:57 +02:00
org-mouse.el org-mouse: Support intermediate-state checkboxes 2021-09-26 07:56:00 +02:00
org-num.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
org-pcomplete.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
org-plot.el Fix a small number of typos 2021-09-17 17:01:57 +08:00
org-protocol.el Merge branch 'km/from-emacs-master' 2021-09-26 23:24:13 -04:00
org-refile.el Merge branch 'maint' 2021-05-25 02:13:55 +02:00
org-src.el org-src.el: Do not indent blank lines, except current one 2021-09-26 07:47:40 +02:00
org-table.el Merge branch 'bugfix' 2021-09-26 08:54:40 +02:00
org-tempo.el Backport commit a0854f939 from Emacs 2021-03-14 17:57:07 -04:00
org-timer.el Merge branch 'km/from-emacs-master' 2021-09-19 22:39:03 -04:00
org.el Backport commit 0da8118dc from Emacs 2021-09-26 22:49:55 -04:00
ox-ascii.el ox-ascii: Justify correctly with indent-tabs-mode 2021-09-20 00:57:43 +08:00
ox-beamer.el Add Nicolas as the maintainer for a few ox-*.el files 2021-05-03 06:41:56 +02:00
ox-html.el Backport commit 85e9e5f61 from Emacs 2021-09-26 22:49:55 -04:00
ox-icalendar.el Update Carsten's email address in some files 2021-05-07 16:50:57 +02:00
ox-koma-letter.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ox-latex.el Merge branch 'bugfix' 2021-09-25 18:02:19 +02:00
ox-man.el Remove references to deleted packages 2021-09-26 14:13:28 +02:00
ox-md.el lisp/ox-md.el: Mark some arguments as unused 2021-05-15 16:13:49 +02:00
ox-odt.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ox-org.el Add Nicolas as the maintainer for a few ox-*.el files 2021-05-03 06:41:56 +02:00
ox-publish.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ox-texinfo.el Various minor docfixes found by checkdoc 2021-09-16 21:24:59 +02:00
ox.el ox.el: add smart quotes for greek 2021-09-25 22:54:05 +02:00