From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Ziegenhagen Subject: Re: Color entries according to assigned priority Date: Thu, 8 May 2014 04:36:37 +0000 (UTC) Message-ID: References: <864n17xs52.fsf@somewhere.org> <87fvkqmtc2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiG4n-0001to-6m for emacs-orgmode@gnu.org; Thu, 08 May 2014 00:37:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiG4g-0005gC-UB for emacs-orgmode@gnu.org; Thu, 08 May 2014 00:36:57 -0400 Received: from plane.gmane.org ([80.91.229.3]:56048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiG4g-0005fy-Ng for emacs-orgmode@gnu.org; Thu, 08 May 2014 00:36:50 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WiG4f-0002RV-1K for emacs-orgmode@gnu.org; Thu, 08 May 2014 06:36:49 +0200 Received: from cable-78-34-39-130.netcologne.de ([78.34.39.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 May 2014 06:36:49 +0200 Received: from ziegenhagen by cable-78-34-39-130.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 May 2014 06:36:49 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Alexander Baier gmail.com> writes: > > On 2014-05-03 22:07 Uwe Ziegenhagen wrote: > > I copied and pasted the given code, however I do not see any change. I'll > > try my luck again tomorrow and will get back to you. > > Just to be sure, did you eval the pasted code? And restarting org-mode > (M-x fundamental-mode M-x org-mode) could be necessary, too? > > HTH, Yes, I did. I just ran some tests. Using only ;; Do not show welcome screen at startup (setq inhibit-startup-message t) ;; just answer Emacs' question with 'y' or 'n' instead of 'yes'or 'no' (defalias 'yes-or-no-p 'y-or-n-p) ;; Load org mode (add-to-list 'load-path "G:/Programme/emacs-24.3/myLisp/org-8.2.4/lisp") in my .emacs I get http://uweziegenhagen.de/gmane/gmane1.png If I use the code from the posting ######################################## ;; Do not show welcome screen at startup (setq inhibit-startup-message t) ;; just answer Emacs' question with 'y' or 'n' instead of 'yes'or 'no' (defalias 'yes-or-no-p 'y-or-n-p) ;; Load org mode (add-to-list 'load-path "G:/Programme/emacs-24.3/myLisp/org-8.2.4/lisp") (font-lock-add-keywords 'org-mode '(("^.*:write:.*$" . font-lock-keyword-face))) (setq org-agenda-face-for-tagged-lines '(("write" . bold))) (defun org-agenda-fontify-tagged-line () "Use `org-agenda-face-for-tagged-lines' to fontify lines with certain tags." (goto-char (point-min)) (let (tags) (while (progn (forward-line 1) (not (eobp))) (if (setq tags (get-text-property (point) 'tags)) (mapcar (lambda (pair) (if (member (car pair) tags) (add-text-properties (point-at-bol) (point-at-eol) `(face,(cdr pair))))) org-agenda-face-for-tagged-lines))))) (add-hook 'org-agenda-finalize-hook 'org-agenda-fontify-tagged-line) ################################################# I get http://uweziegenhagen.de/gmane/gmane2.png which is the same. Uwe