[Orgmode] Faces for deadlines?
Hello, I'm trying to customize the display of deadlines. I currently have: --8---cut here---start-8--- (org-upcoming-deadline ((t (:foreground white :background rgb:E9/A3/6A :weight bold (org-warning ((t (:foreground white :background rgb:D8/00/00 :weight bold --8---cut here---end---8--- in my color-theme, but I would like to have (for example): - red for actions due in the past (In -2 d.) - orange for actions due today (Deadline) - green for actions due in the next coming days (In 3 d.) (DEADLINE = `org-agenda-skip-deadline-prewarning-if-scheduled') - blue for longer-term deadlines (In 13 d.) (DEADLINE `org-agenda-skip-deadline-prewarning-if-scheduled' and DEADLINE = `org-deadline-warning-days') Is this possible? Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Faces to Names
Hi everyone, some time ago, I stumbled over a picture of Eric Schulte on his Org-generated home page (http://cs.unm.edu/~eschulte/). And that made me realize how nice it can be to think of a face when reading a name. So want to start a page with people from this community here, where some of us are introduced with a picture and maybe a little text with a few links. To get started, I have made this page on Worg: http://orgmode.org/worg/org-people.html There are a few people already on this list, just to get over the first bump. I absolutely do not want this to be the list with only the 5 hotshots. If you feel yourself to be a member of this community, if you post here every now and then, then don't hesitate to add an entry to this file. So far, the text people have added turns out to be mostly about Org. This is OK, of course, but my original intention was also that people might write something about themselves, what they do besides using Org. So feel free to put there anything you like, links to whatever is important to you and you feel like showing here. Also, the picture can be more crazy than what we have so far! People with write access to Worg can easily do this themselves, just look at the examples already in the buffer. Most entries use the person macro which scales the picture to 300 pixels. But if the quality of the picture does not allow it, use person200 or so instead. The pictures are –in from off-site, to not make this project blow up the size of the Worg repo too much. That also means that you can change that picture behind our back any time you want :-) If you don't have write access on Worg and find it too much trouble to get it, send me (or maybe there is a volunteer for this???) a link to a picture somewhere on the web, and a small piece of text in Org-mode syntax. I hope enough people find this not a stupid, but an interesting idea... :-) - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Faces bug in org-indent-mode
El dt, ago 25 2009 a les 09:56, Carsten Dominik va escriure: thing will break. The real solution for this would be to switch to a programmed solution instead of a regular expression search. Or many regular expressions, one for each context: table, heading, comment, text, … Based on the context, you choose one or another. To know the context, there may be some text property set at each point. If Emacs had a way to check for a text property (or even a face) inside a regexp, this could be easier. You could still use a single expression which would direct to the context-specific part, like in: \p{heading}REGEXP_ONLY_FOR_HEADINGS\|\p{table}REGEXP_FOR_TABLES\|… where \p{property} is the proposed addition to Emacs regexps. This was a minor issue, but making Emacs regexps more powerful would be nice. -- Daniel ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Faces bug in org-indent-mode
On Aug 26, 2009, at 1:42 PM, Daniel Clemente wrote: El dt, ago 25 2009 a les 09:56, Carsten Dominik va escriure: thing will break. The real solution for this would be to switch to a programmed solution instead of a regular expression search. Or many regular expressions, one for each context: table, heading, comment, text, … Based on the context, you choose one or another. To know the context, there may be some text property set at each point. If Emacs had a way to check for a text property (or even a face) inside a regexp, this could be easier. You could still use a single expression which would direct to the context-specific part, like in: \p{heading}REGEXP_ONLY_FOR_HEADINGS\|\p{table}REGEXP_FOR_TABLES \|… where \p{property} is the proposed addition to Emacs regexps. All we would really need are positive and negative look-ahead and look-behind assertions as the Perl regular expression allows them. - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Faces bug in org-indent-mode
Hi Daniel, thanks for looking deeper into the issue. As you have noticed yourself, your proposal fixes only half of the problem. Doing this emphasis with a regular expression is really hard, and each time you change something, another thing will break. The real solution for this would be to switch to a programmed solution instead of a regular expression search. Your proposed change does fix a problem, but it also breaks the structure of how the emphasis regexp is constructed. BODY is supposed to match a character that should be emphasized. Maybe it can be re-written so that this does not have to be part of the BODY. Also, there are similar issues with this in tables: Try | *h | h | | h | h* | or also with comments: Some text *h mamma mia # terminate bold in comment* So I will out this on the back burner and try to get myself to implement programmed emphasis at some point. Sorry. - Carsten On Aug 21, 2009, at 1:03 PM, Daniel Clemente wrote: El dj, ago 20 2009 a les 21:57, Carsten Dominik va escriure: * something aaa =eee * two= *iii ooo* uuu Yes, this is kind of hard to fix.. And a minor issue, I guess... ? Yes, it's a minor issue. I like minor issues :-) There are two display problems here: - a face defined before a heading enters the heading (like the =eee…=) - a face defined in a heading goes on past the heading (like the *iii…) I did some tests with org-emph-re (original value: [1]); the interesting part is \\(?:\n.*?\\)\\{0,1\\} because it is the one that allows the face to extend up to 1 line below. The .*? from there comes from the so-called body in org-emphasis- regexp-components, body=. I have done some tests and I think that body=\\(?:\\*+[^\n ]\\|[^ \n*]\\). fixes the first problem. The expression represents a non- heading line: anything not starting by * (except when the initial * precedes a word) and then many other characters (a *? at the end will be added by org-set-emph-re) Final value: [2] Is this added complexity worth it? The bug is unpleasant (headings aren't coloured as headings) and performance shouldn't be much affected in the common case because ^\\* fails early. Only visually it is a complex regexp. I don't know how to detect the other problem inside a regular expression. Maybe there's some way to ask „don't cross boundaries between headings and content“. -- Daniel [1]: \\([ ('`\{]\\|^\\)\\(\\([*/_=~+]\\)\\([^ \n,\']\\|[^ \n,\'].*?\\(?:\n.*?\\)\\{0,1\\}[^ \n,\']\\)\\3\\)\\([- .,:!?;'\)}\\]\\|$\\) [2]: \\([ ('`\{]\\|^\\)\\(\\([*/_=~+]\\)\\([^ \n,\']\\|[^ \n,\'].*?\\(?:\n\\*+[^\n ].*?\\|\n[^\n*].*?\\)\\{0,1\\}[^ \n,\']\\)\\3\\)\\([- .,:!?;'\)}\\]\\|$\\) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Faces bug in org-indent-mode
El dj, ago 20 2009 a les 21:57, Carsten Dominik va escriure: * something aaa =eee * two= *iii ooo* uuu Yes, this is kind of hard to fix.. And a minor issue, I guess... ? Yes, it's a minor issue. I like minor issues :-) There are two display problems here: - a face defined before a heading enters the heading (like the =eee…=) - a face defined in a heading goes on past the heading (like the *iii…) I did some tests with org-emph-re (original value: [1]); the interesting part is \\(?:\n.*?\\)\\{0,1\\} because it is the one that allows the face to extend up to 1 line below. The .*? from there comes from the so-called body in org-emphasis-regexp-components, body=. I have done some tests and I think that body=\\(?:\\*+[^\n ]\\|[^\n*]\\). fixes the first problem. The expression represents a non-heading line: anything not starting by * (except when the initial * precedes a word) and then many other characters (a *? at the end will be added by org-set-emph-re) Final value: [2] Is this added complexity worth it? The bug is unpleasant (headings aren't coloured as headings) and performance shouldn't be much affected in the common case because ^\\* fails early. Only visually it is a complex regexp. I don't know how to detect the other problem inside a regular expression. Maybe there's some way to ask „don't cross boundaries between headings and content“. -- Daniel [1]: \\([ ('`\{]\\|^\\)\\(\\([*/_=~+]\\)\\([^ \n,\']\\|[^ \n,\'].*?\\(?:\n.*?\\)\\{0,1\\}[^ \n,\']\\)\\3\\)\\([- .,:!?;'\)}\\]\\|$\\) [2]: \\([ ('`\{]\\|^\\)\\(\\([*/_=~+]\\)\\([^ \n,\']\\|[^ \n,\'].*?\\(?:\n\\*+[^\n ].*?\\|\n[^\n*].*?\\)\\{0,1\\}[^ \n,\']\\)\\3\\)\\([- .,:!?;'\)}\\]\\|$\\) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Faces bug in org-indent-mode
There's a little problem with faces in org-indent-mode. Faces that highlight to the end of the line (hl-line-face, org-level-faces if org-fontify-whole-header-line is on, etc) get carried over to the start of text on the next line. Faces like that are pretty rare, but I thought I'd go ahead and report this. -- +---+ | Jason F. McBrayerjmcb...@carcosa.net | | If someone conquers a thousand times a thousand others in | | battle, and someone else conquers himself, the latter one | | is the greatest of all conquerors. --- The Dhammapada| ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Faces bug in org-indent-mode
I don't know if it's the same as what you report, but I can see the same behaviour also in this file: * something aaa =eee * two= *iii ooo* uuu Open/close/expand/contract as needed. In my Emacs 23 with latest org I see it wrongly highlighted just after opening it (headings contracted): What I see wrong is: - the „code“ face comprises =eee \n* two= - the „bold“ face comprises *iii\nooo* ( \n = ⏎ = line break ). So both span past the end of the line. This only happens if the next line is consecutive (with no blank lines). -- Daniel El dj, ago 20 2009 a les 15:07, Jason F. McBrayer va escriure: There's a little problem with faces in org-indent-mode. Faces that highlight to the end of the line (hl-line-face, org-level-faces if org-fontify-whole-header-line is on, etc) get carried over to the start of text on the next line. Faces like that are pretty rare, but I thought I'd go ahead and report this. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Faces bug in org-indent-mode
Hi, that is an Emacs bug, not an Org-mode bug. - Carsten On Aug 20, 2009, at 2:07 PM, Jason F. McBrayer wrote: There's a little problem with faces in org-indent-mode. Faces that highlight to the end of the line (hl-line-face, org-level-faces if org-fontify-whole-header-line is on, etc) get carried over to the start of text on the next line. Faces like that are pretty rare, but I thought I'd go ahead and report this. -- +---+ | Jason F. McBrayerjmcb...@carcosa.net | | If someone conquers a thousand times a thousand others in | | battle, and someone else conquers himself, the latter one | | is the greatest of all conquerors. --- The Dhammapada| ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Faces bug in org-indent-mode
On Aug 20, 2009, at 2:34 PM, Daniel Clemente wrote: I don't know if it's the same as what you report, but I can see the same behaviour also in this file: * something aaa =eee * two= *iii ooo* uuu Open/close/expand/contract as needed. In my Emacs 23 with latest org I see it wrongly highlighted just after opening it (headings contracted): What I see wrong is: - the „code“ face comprises =eee \n* two= - the „bold“ face comprises *iii\nooo* ( \n = ⏎ = line break ). So both span past the end of the line. This only happens if the next line is consecutive (with no blank lines). Yes, this is kind of hard to fix.. And a minor issue, I guess... ? - Carsten -- Daniel El dj, ago 20 2009 a les 15:07, Jason F. McBrayer va escriure: There's a little problem with faces in org-indent-mode. Faces that highlight to the end of the line (hl-line-face, org-level-faces if org-fontify-whole-header-line is on, etc) get carried over to the start of text on the next line. Faces like that are pretty rare, but I thought I'd go ahead and report this. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Faces in agenda view
Hi I was just looking through options in org-customize because I'd like to change the colours used in the agenda view - currently items nearing a deadline show as red, and items actually on their deadline are pink. I'd like my upcoming deadline items to be in less alarmist colours (perhaps use the pink) and only those on or past deadline in red (similar to scheduled tasks which go red after the scheduled date). Problem is, I got a bit confused by the various options which define warning states for example. Can anyone give me a quick and easy way of changing this without breaking something else? Thanks Paul ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Faces in agenda view
Paul Mead paul.d.m...@gmail.com writes: Can anyone give me a quick and easy way of changing this without breaking something else? Go to the face you want to change and hit M-x customize-face RET -- Bastien ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Faces
Hi, I've been customizing faces for org-mode. Everything is easy to do except I can't figure out how to customize the face of lines which begin with # such as the following: #+STARTUP: hidestars overview How do I customize the face of these lines? Scott Randby ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] faces in agenda
On Aug 3, 2008, at 1:21 PM, Richard G Riley wrote: Possibly a small bug. In the agenda all scheduled items appear to use the face org-scheduled-today even if they are scheduled a day or two in the future. I don't see this as a bug. Maybe the name of the face is slightly missleading. This face marks tasks which are scheduled under the date where they are scheduled. - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] faces in agenda
Carsten Dominik [EMAIL PROTECTED] writes: On Aug 3, 2008, at 1:21 PM, Richard G Riley wrote: Possibly a small bug. In the agenda all scheduled items appear to use the face org-scheduled-today even if they are scheduled a day or two in the future. I don't see this as a bug. Maybe the name of the face is slightly missleading. This face marks tasks which are scheduled under the date where they are scheduled. - Carsten I guess I think an org-scheduled face for tasks not scheduled for today allows better clarity so that todays tasks (org-scheduled-today) stand out more in the agenda should you so require/customise. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] faces in agenda
On Sep 3, 2008, at 11:49 AM, Richard G Riley wrote: Carsten Dominik [EMAIL PROTECTED] writes: On Aug 3, 2008, at 1:21 PM, Richard G Riley wrote: Possibly a small bug. In the agenda all scheduled items appear to use the face org-scheduled-today even if they are scheduled a day or two in the future. I don't see this as a bug. Maybe the name of the face is slightly missleading. This face marks tasks which are scheduled under the date where they are scheduled. - Carsten I guess I think an org-scheduled face for tasks not scheduled for today allows better clarity so that todays tasks (org-scheduled-today) stand out more in the agenda should you so require/customise. OK, done. - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] faces in agenda
Possibly a small bug. In the agenda all scheduled items appear to use the face org-scheduled-today even if they are scheduled a day or two in the future. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] faces for keywords
On Feb 7, 2008, at 10:07 AM, Dmitri Minaev wrote: When I followed the examples given in the manual for setting org-todo-keyword-faces, I could change the font color but not its weight. I had to defface a new face and use it in the org-todo-keyword-faces to get the bold font. What I did first was: (setq org-todo-keyword-faces '((WAITING . (:foreground blue :weight bold :bold t The same face definition syntax used with defface worked well: (defface org-waiting-face '((t (:foreground blue :weight bold :bold t))) Face for WAITING todo items.) (setq org-todo-keyword-faces '((WAITING . org-waiting-face))) GNU Emacs 23.0.0.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) What did I do wrong? I don't know, do not understand faces well enough in Emacs. - Carsten -- With best regards, Dmitri Minaev Russian history blog: http://minaev.blogspot.com ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] faces for keywords
Dmitri Minaev [EMAIL PROTECTED] writes: When I followed the examples given in the manual for setting org-todo-keyword-faces, I could change the font color but not its weight. I had to defface a new face and use it in the org-todo-keyword-faces to get the bold font. What I did first was: (setq org-todo-keyword-faces '((WAITING . (:foreground blue :weight bold :bold t The same face definition syntax used with defface worked well: (defface org-waiting-face '((t (:foreground blue :weight bold :bold t))) Face for WAITING todo items.) (setq org-todo-keyword-faces '((WAITING . org-waiting-face))) GNU Emacs 23.0.0.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) What did I do wrong? Nothing. I tested this and noticed that the problem happened for the :weight and :bold property, not for the :foreground property. Which confirms this is a problem with Emacs. -- Bastien ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] faces for keywords
On Feb 19, 2008 9:12 AM, Bastien Guerry [EMAIL PROTECTED] wrote: What did I do wrong? Nothing. I tested this and noticed that the problem happened for the :weight and :bold property, not for the :foreground property. Which confirms this is a problem with Emacs. Thanks. Perhaps, the org-mode manual should be updated to reflect the sad reality, then... -- With best regards, Dmitri Minaev Russian history blog: http://minaev.blogspot.com ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] faces for keywords
When I followed the examples given in the manual for setting org-todo-keyword-faces, I could change the font color but not its weight. I had to defface a new face and use it in the org-todo-keyword-faces to get the bold font. What I did first was: (setq org-todo-keyword-faces '((WAITING . (:foreground blue :weight bold :bold t The same face definition syntax used with defface worked well: (defface org-waiting-face '((t (:foreground blue :weight bold :bold t))) Face for WAITING todo items.) (setq org-todo-keyword-faces '((WAITING . org-waiting-face))) GNU Emacs 23.0.0.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) What did I do wrong? -- With best regards, Dmitri Minaev Russian history blog: http://minaev.blogspot.com ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode