diff options
author | Bastien Guerry <bzg@altern.org> | 2013-03-01 17:27:50 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-03-01 17:27:50 +0100 |
commit | 3b4a0b21c846a574baa63fc9e4002174538f89d7 (patch) | |
tree | 962abf8bb7ca3ebd873458f2fd659e755d51fdbb | |
parent | 1094a5eab79e611e04b8e4d19a4963c813928560 (diff) | |
download | org-mode-3b4a0b21c846a574baa63fc9e4002174538f89d7.tar.gz |
org-agenda.el (org-agenda-entry-text-leaders): New option
* org-agenda.el (org-agenda-entry-text-leaders): New option.
(org-agenda-entry-text-show-here): Use it.
Thanks to Sébastien Vauban for a preliminary patch for this.
-rw-r--r-- | lisp/org-agenda.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 70cee2f..4e296db 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -988,6 +988,13 @@ removed from entry text before it is shown in the agenda." :group 'org-agenda :type '(repeat (regexp))) +(defcustom org-agenda-entry-text-leaders " > " + "Text prepended to the entry text in agenda buffers." + :version "24.4" + :package-version '(Org . "8.0") + :group 'org-agenda + :type 'string) + (defvar org-agenda-entry-text-cleanup-hook nil "Hook that is run after basic cleanup of entry text to be shown in agenda. This cleanup is done in a temporary buffer, so the function may inspect and @@ -3816,7 +3823,8 @@ This check for agenda markers in all agenda buffers currently active." (error "No marker points to an entry here")) (setq txt (concat "\n" (org-no-properties (org-agenda-get-some-entry-text - m org-agenda-entry-text-maxlines " > ")))) + m org-agenda-entry-text-maxlines + org-agenda-entry-text-leaders)))) (when (string-match "\\S-" txt) (setq o (make-overlay (point-at-bol) (point-at-eol))) (overlay-put o 'evaporate t) |