From: Uwe Ziegenhagen <ziegenhagen@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Color entries according to assigned priority
Date: Thu, 8 May 2014 04:36:37 +0000 (UTC) [thread overview]
Message-ID: <loom.20140508T063355-993@post.gmane.org> (raw)
In-Reply-To: 87fvkqmtc2.fsf@gmail.com
Alexander Baier <lexi.baier <at> 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
next prev parent reply other threads:[~2014-05-08 4:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-03 3:33 Color entries according to assigned priority Uwe Ziegenhagen
2014-05-03 7:01 ` Sebastien Vauban
2014-05-03 20:07 ` Uwe Ziegenhagen
2014-05-03 21:43 ` Alexander Baier
2014-05-08 4:36 ` Uwe Ziegenhagen [this message]
2014-05-09 16:40 ` Alexander Baier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20140508T063355-993@post.gmane.org \
--to=ziegenhagen@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.