From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Agenda view > Face for deadlines Date: Tue, 18 May 2010 10:02:12 +0200 Message-ID: <87r5l94ozf.fsf@mundaneum.com> References: <87vdasfb1w.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi all, > But it's not yet as right as it should be (let me rephrase: as I would li= ke > it) because the face is only applied on the visible characters: the > "separator" does not expand up to the right of the screen. > > An improved version (re readability) of the agenda view would be: > > Week-agenda (W19-W20): > Saturday 15 May 2010 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxx > Personal: 18:00-19:00 Mar :home::e= rrands: > > [...] > > where `xxx' is just some textual way to represent background color. In the same kind of thought, trying to enhance the way we (or I) visualize tasks in the agenda, I have chosen some sort of "inverse video" face for deadlines. --8<---------------cut here---------------start------------->8--- (my-org-deadline-yesterday ((t (:foreground "white" :background "#D80000" := weight bold)))) (my-org-deadline-today ((t (:foreground "white" :background "#E9A36A" :weig= ht bold)))) (my-org-deadline-tomorrow ((t (:foreground "black" :background "#B4F1B3" :w= eight bold)))) (my-org-deadline-later ((t (:foreground "black" :background "#AACAFC")))) --8<---------------cut here---------------end--------------->8--- with the following code in my .emacs file: --8<---------------cut here---------------start------------->8--- ;; faces for showing deadlines in the agenda (setq org-agenda-deadline-faces '((1.01 . my-org-deadline-yesterday) (0.99 . my-org-deadline-today) (0.49 . my-org-deadline-tomorrow) (0.00 . my-org-deadline-later))) --8<---------------cut here---------------end--------------->8--- The result is the following: --8<---------------cut here---------------start------------->8--- Week-agenda (W20-W21): 2010-05-18 Tue ____________________________________________________________= _____ Personal: 17:15-17:20 Sarah! :home::err= ands: refile: Sched. 2x: TODO [#A] Update reservations Scorpios :ref= ile:: x Family: xxx In -1 d.: TODO [#A] Photos-reportage Andre xxxx :home::comp= uter: --8<---------------cut here---------------end--------------->8--- where `xxx' is just some textual way to represent background color. For the sake of clarity, I'd like the first 2 characters (in front of `Family', in my example) not to be "impacted" by that face. Otherwise, when= in inverse video, they obfuscate the view of the day separators and of the deadline lines. Is there a way to do so? FYI, my ultimate question of the agenda view is: is it easy to make [#A], [= #B] and [#C] priorities have their own faces, so that we can highlight them the way we want? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode