[Orgmode] orgstruct-mode error

2007-08-26 Thread David O'Toole

I am using org 5.05 and get this error when doing org-cycle in an
emacs-lisp-mode buffer (with Orgstruct mode on)

> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   re-search-forward(nil 6690 t)
>   org-cycle-hide-drawers(contents)
>   run-hook-with-args(org-cycle-hide-drawers contents)
>   org-cycle(t)
>   org-cycle-global()
>   call-interactively(org-cycle-global)
>   recursive-edit()
>   byte-code("Æ@Ç=!ÈÉÊ\"ËÉ!A@)¢Ì=!ÈÍÊ\"Î!Ï Ð 
> !\fcÑed\"VWebÒ¥y`dbÒ¥Zy`|)ÓcebÔÕÖ \"× ÔØ!ÙÊÔØ!ŠÚ +Ù" [unread-command-char 
> debugger-args x debugger-buffer noninteractive debugger-batch-max-lines -1 
> debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer 
> debugger-mode debugger-setup-buffer count-lines 2 "...\n" message "%s" 
> buffer-string kill-emacs "" nil recursive-edit middlestart buffer-read-only 
> standard-output] 4)
>   debug(error (wrong-type-argument stringp nil))
>   re-search-forward(nil 6690 t)
>   org-cycle-hide-drawers(contents)
>   run-hook-with-args(org-cycle-hide-drawers contents)
>   org-cycle(t)
>   org-cycle-global()
>   call-interactively(org-cycle-global)

Here is the code I use to set up the buffer:


;; global consistent org cycling keys

(defun org-cycle-global ()
  (interactive)
  (org-cycle t))

(defun org-cycle-local ()
  (interactive)
  (save-excursion
(move-beginning-of-line nil)
(org-cycle)))

(global-set-key (kbd "M-[") 'org-cycle-global)
(global-set-key (kbd "M-]") 'org-cycle-local)

(add-hook 'emacs-lisp-mode-hook #'orgstruct-mode)

 Fontifying todo items outside of org-mode

(defface todo-comment-face '((t (:background "red" :foreground "yellow" :weight 
bold :bold t))) "Face for TODO in code buffers.")
(defvar todo-comment-face 'todo-comment-face)
(defun fontify-todo () 
  (font-lock-add-keywords nil '(("\\<\\(TODO\\)\\>" 
 (1 todo-comment-face t)

(add-hook 'emacs-lisp-mode-hook #'fontify-todo)


(defface headline-face '((t (:foreground "white" :underline "white" :background 
"navyblue"))) "Face for headlines.")
(defvar headline-face 'headline-face)

(defun fontify-headline () 
  (font-lock-add-keywords nil '(("^* \\(.*\\)\\>" 
 (1 headline-face t)


(add-hook 'emacs-lisp-mode-hook #'fontify-headline)




-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Rounding in org-mode tables

2007-08-26 Thread James Hawley

Hi!

I'm a relatively new emacs and org-mode user so I apologize for the 
basic nature of this question. Unfortunately, the answer is probably so 
obvious that no one has had to ask it before, and, as a result, I have 
not been able to find this subject in the mailing list.  Of course, I 
may not be doing a good search, so please accept another apology.


Anyway, all I am trying to do is to sum a column of numbers in a table 
in an org file.  Here's an example:


935.15
6483.80
7419.00
#+TBLFM: @16$4=vsum(@[EMAIL PROTECTED]);%.2f

The answer is obviously being rounded but I don't want that and I 
cannot figure out the undoubtedly trivial way to stop it so I get the 
answer that I want to see - 7418.95.


Thanks for any help anyone offers on this simple (but frustrating for 
me) question.


Jim Hawley



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] New faces in org-mode ??

2007-08-26 Thread Carsten Dominik

This is currently not implemented.  However,
it has been asked for quite a few times now, so
it will be implemented in the next version, 5.07.
When that is out, check for the variable
`org-todo-keyword-faces'.

- Carsten

On Aug 25, 2007, at 2:23, William Case wrote:


Hi;

I have made the following change in my org-mode:

 (setq org-todo-keywords '("TODO" "WAIT" "MAYBE" "DONE")
   org-todo-interpretation 'sequence)

Actually, I am not sure if that is final variable change, but that was
what was suggested in the documentation.  In fact, I M-x cutomize-group
RET org-mode, then added "WAIT" and "MAYBE" to org TODO keywords and
saved for future sessions.

"TODO" "WAIT" "MAYBE" all show with 'red1' faces while "DONE" is in
forest green.  How do I cutomize org-mode so that "WAIT" and "MAYBE"
have their own itemization in custom-org-faces and then make each have
their own face colour?

--
Regards Bill



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] request: face for „...“ a t collapsed sections

2007-08-26 Thread Daniel Clemente
  Hi,
  now that we speak about new faces... I would like to change the
color of the ... that can be seen when a section is rolled out. Why?
Because I want to differentiate this:

** Some title...

  From this:

** Some title...

   Yes, they are equal, but not really: at one, I wrote „..." at the
title (I like to write those points... :-), but at the other, org-mode
wrote the „..." to show me that the section was collapsed. But I can't
tell the difference.
   Sometimes I have deleted big texts because I thought they were only
points ... ... ... ...; therefore I want the „..." from org-mode to be
shown in another face.

   Greetings,
Daniel


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Rounding in org-mode tables

2007-08-26 Thread Carsten Dominik


On Aug 26, 2007, at 4:00, James Hawley wrote:


Hi!

I'm a relatively new emacs and org-mode user so I apologize for the 
basic nature of this question. Unfortunately, the answer is probably 
so obvious that no one has had to ask it before, and, as a result, I 
have not been able to find this subject in the mailing list.  Of 
course, I may not be doing a good search, so please accept another 
apology.


Anyway, all I am trying to do is to sum a column of numbers in a table 
in an org file.  Here's an example:


935.15
6483.80
7419.00
#+TBLFM: @16$4=vsum(@[EMAIL PROTECTED]);%.2f

The answer is obviously being rounded but I don't want that and I 
cannot figure out the undoubtedly trivial way to stop it so I get the 
answer that I want to see - 7418.95.


Thanks for any help anyone offers on this simple (but frustrating for 
me) question.


Org-mode uses a relatively compact output format for calc in order
to avoid that fields get too wide.  You can fix this by changing
the default format in `org-calc-default-mode' from (float 5) to (float 
8)

or so, but that means each time a number is produced with many digits,
all 8 will be displayed.

The other option is to change the format on the fly, just for a specific
formula, using (again for example) an f8 flag, like

$4 = vsum($1..$3);f8

Hope this helps.

- Carsten



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] request: face for „...“ at co llapsed sections

2007-08-26 Thread Carsten Dominik


On Aug 26, 2007, at 19:47, Daniel Clemente wrote:


  Hi,
  now that we speak about new faces... I would like to change the
color of the ... that can be seen when a section is rolled out. Why?
Because I want to differentiate this:

** Some title...

  From this:

** Some title...

   Yes, they are equal, but not really: at one, I wrote „..." at the
title (I like to write those points... :-), but at the other, org-mode
wrote the „..." to show me that the section was collapsed. But I can't
tell the difference.
   Sometimes I have deleted big texts because I thought they were only
points ... ... ... ...; therefore I want the „..." from org-mode to be
shown in another face.



Indeed, a very bad idea to write ... in Emacs when using outlines.

I don't know how to change the font, but you can change the ellipsis
string in org-mode, using the variable `org-ellipsis'.

- Carsten



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Org-mode version 5.05

2007-08-26 Thread Carsten Dominik

fixed, thanks.

- Carsten

On Aug 25, 2007, at 19:55, Bastien wrote:


Carsten Dominik <[EMAIL PROTECTED]> writes:


  - New variable `org-remember-store-without-prompt'.  When set,
exiting the remember buffer with C-c C-c will store the note
without further prompts to the default location, and `C-u
C-c C-c' will get the prompts for file and location.  So
this variable reverses the prefix-argument functionality for
storing remember notes.  This follows a request from John
Wiegley.


Nice!

When set to t, the following docstring in `org-remember-apply-template'
should be updated accordingly :

## `C-c C-c' to file interactively, `C-u C-c C-c' to file directly.

--
Bastien


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Table calculation question

2007-08-26 Thread Bernt Hansen
In the following table I'd like to vertically sum the column and the
compute a new value based on that sum.

|---+---+---+---+---+-|
|   | A | B | C | Total | Details |
|---+---+---+---+---+-|
| # | 1 | 2 | 4 | 7 | Item 1  |
| # | 2 | 6 | 4 |12 | Item 2  |
| # | 2 | 4 | 4 |10 | Item 3  |
| # | 2 | 6 | 3 |11 | Item 4  |
|---+---+---+---+---+-|
| # |   |   |   |40 | 400.00  |
| ^ |   |   |   |   tot | result  |
| $ |   |   |   |   | kval=10 |
|---+---+---+---+---+-|
#+TBLFM: $5=$2+$3+$4::$tot=vsum(@[EMAIL PROTECTED])::$result=$tot*$kval;%.2f

If I edit any of the values in columns A, B, C and do C-u C-c C-c then
the total (tot) value is recalculated but result is not.  Doing C-u C-c
C-c a second time recalculates result based on the new tot value.

Is there a way to do this in a single table recalculation?

Thanks,
Bernt



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: request: face for „...“ at collapsed sections

2007-08-26 Thread Tassilo Horn
"Daniel Clemente" <[EMAIL PROTECTED]> writes:

Hi Daniel,

>   now that we speak about new faces... I would like to change the
> color of the ... that can be seen when a section is rolled out. Why?
> Because I want to differentiate this:
>
> ** Some title...
>
>   From this:
>
> ** Some title...

I have this in my emacs:

,
| ;;; Making fold markers ("...")  more visible
| 
| (defface selective-display
|   '((default :background "lightgrey")
| (((supports :underline "red")) :underline "red"))
|   "Face used for fold markers like ...")
| 
| (unless standard-display-table
|   (setq standard-display-table (make-display-table)))
| 
| (set-display-table-slot standard-display-table 'selective-display
| (vconcat (mapcar
|   (lambda (c)
| (make-glyph-code c 'selective-display))
|   "...")))
`

Bye,
Tassilo
-- 
No person,  no idea, and no  religion deserves to be  illegal to insult,
not even the Church of Emacs. (Richard M. Stallman)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: request: face for „...“ at collapsed sections

2007-08-26 Thread Daniel Clemente
Hi,
>
> I have this in my emacs:
>
> ,
> | ;;; Making fold markers ("...")  more visible
> |
> | (defface selective-display
> |   '((default :background "lightgrey")
> | (((supports :underline "red")) :underline "red"))
> |   "Face used for fold markers like ...")
> |
> | (unless standard-display-table
> |   (setq standard-display-table (make-display-table)))
> |
> | (set-display-table-slot standard-display-table 'selective-display
> | (vconcat (mapcar
> |   (lambda (c)
> | (make-glyph-code c
> 'selective-display))
> |   "...")))
> `
>

   Wow, that seems a very low-level solution, but it works. I think it
would be better if org-mode would set the „..." directly with another
face.

   Thanks for your instructive hack,

Daniel


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] struggling with fixed date entries

2007-08-26 Thread Rainer Stengele

I wonder what is the best way to work with fixed dates in org.
I do not want to them entered as "SCHEDULED".

Say I have a meeting on a certain date.
I do not want to enter it as a todo, as for me it is not really a todo 
but a simple meeting which is done when it is over.
If I enter it as a simple headline (todo or no todo) and schedule it it 
will show up after the meeting as due until I mark it as "DONE" or 
delete the schedule.


Now I could use the diary. Agenda view will show the event and complain 
no more after it is past. Disadvantage: I cannot org-tag the diary entry.
As I do not use the diary and diary functions are included in org I can 
use something like:


   * Fixed date event  :@LOCATION:
 <%%(diary-date 29 08 2007)>

which is ugly and cannot be entered with the help of the calendar (as by 
"C-c C-s"


What do you think? Would it be a good idea to at least support the 
entering of a "diary-date" by a org function directly with the help of 
the calendar? Maybe create a third type of schedule type: "FIXED" 
besides of "SCHEDULED" and "DEADLINE"?


How do you manage fixed events?


Rainer



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: struggling with fixed date entries

2007-08-26 Thread Bernt Hansen
Rainer Stengele <[EMAIL PROTECTED]> writes:

> I wonder what is the best way to work with fixed dates in org.
> I do not want to them entered as "SCHEDULED".
>
> Say I have a meeting on a certain date.
> I do not want to enter it as a todo, as for me it is not really a todo
> but a simple meeting which is done when it is over.
> If I enter it as a simple headline (todo or no todo) and schedule it
> it will show up after the meeting as due until I mark it as "DONE" or
> delete the schedule.
>
> Now I could use the diary. Agenda view will show the event and
> complain no more after it is past. Disadvantage: I cannot org-tag the
> diary entry.
> As I do not use the diary and diary functions are included in org I
> can use something like:
>
>* Fixed date event  :@LOCATION:
>  <%%(diary-date 29 08 2007)>
>
> which is ugly and cannot be entered with the help of the calendar (as
> by "C-c C-s"
>
> What do you think? Would it be a good idea to at least support the
> entering of a "diary-date" by a org function directly with the help of
> the calendar? Maybe create a third type of schedule type: "FIXED"
> besides of "SCHEDULED" and "DEADLINE"?
>
> How do you manage fixed events?

What's wrong with just using a regular date?

* Test Meeting
<2007-08-27 Mon 10:00-11:00>

It shows up on the agenda on the date and time specified similar to a
diary entry.

Bernt



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: struggling with fixed date entries

2007-08-26 Thread Bernt Hansen
Rainer Stengele <[EMAIL PROTECTED]> writes:

> I wonder what is the best way to work with fixed dates in org.
> I do not want to them entered as "SCHEDULED".
>
> Say I have a meeting on a certain date.
> I do not want to enter it as a todo, as for me it is not really a todo
> but a simple meeting which is done when it is over.
> If I enter it as a simple headline (todo or no todo) and schedule it
> it will show up after the meeting as due until I mark it as "DONE" or
> delete the schedule.
>
> Now I could use the diary. Agenda view will show the event and
> complain no more after it is past. Disadvantage: I cannot org-tag the
> diary entry.
> As I do not use the diary and diary functions are included in org I
> can use something like:
>
>* Fixed date event  :@LOCATION:
>  <%%(diary-date 29 08 2007)>
>
> which is ugly and cannot be entered with the help of the calendar (as
> by "C-c C-s"
>
> What do you think? Would it be a good idea to at least support the
> entering of a "diary-date" by a org function directly with the help of
> the calendar? Maybe create a third type of schedule type: "FIXED"
> besides of "SCHEDULED" and "DEADLINE"?
>
> How do you manage fixed events?

What's wrong with just using a regular date?

* Test
<2007-08-27 Mon 10:00-11:00>

It shows up on the agenda on the date and time specified similar to a
diary entry.



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Table calculation question

2007-08-26 Thread Eddward DeVilla
On 8/26/07, Bernt Hansen <[EMAIL PROTECTED]> wrote:
> In the following table I'd like to vertically sum the column and the
> compute a new value based on that sum.
>
> |---+---+---+---+---+-|
> |   | A | B | C | Total | Details |
> |---+---+---+---+---+-|
> | # | 1 | 2 | 4 | 7 | Item 1  |
> | # | 2 | 6 | 4 |12 | Item 2  |
> | # | 2 | 4 | 4 |10 | Item 3  |
> | # | 2 | 6 | 3 |11 | Item 4  |
> |---+---+---+---+---+-|
> | # |   |   |   |40 | 400.00  |
> | ^ |   |   |   |   tot | result  |
> | $ |   |   |   |   | kval=10 |
> |---+---+---+---+---+-|
> #+TBLFM: $5=$2+$3+$4::$tot=vsum(@[EMAIL PROTECTED])::$result=$tot*$kval;%.2f
>
> If I edit any of the values in columns A, B, C and do C-u C-c C-c then
> the total (tot) value is recalculated but result is not.  Doing C-u C-c
> C-c a second time recalculates result based on the new tot value.
>
> Is there a way to do this in a single table recalculation?
>
> Thanks,
> Bernt

I have this in some of my tables.  Right now I just live with it.  The
problem is you can't really have computed value dependent on other
computed values.  Either you can do I like I do when I feel lazy and
recalculate until things stabilize or you can rewrite your formulas to
not depend on other computed values.  So in the case of tot, use tot =
vsum(@[EMAIL PROTECTED]) or something like that.  (I don't have calc so I
can't test this.)

For now, I wish the table editor would highlight calculated cells or
do something to let you know when you are calculating one field using
another calculated field.  I've been telling myself that I'm going to
dig into the formula evaluator and see if I can't get it to inline
formulas from other referenced cells so it will 'do the right thing'.
I'm sure it not trivial and for now there is a work around.

Edd


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Table calculation question

2007-08-26 Thread Carsten Dominik


On Aug 26, 2007, at 21:39, Bernt Hansen wrote:


In the following table I'd like to vertically sum the column and the
compute a new value based on that sum.

|---+---+---+---+---+-|
|   | A | B | C | Total | Details |
|---+---+---+---+---+-|
| # | 1 | 2 | 4 | 7 | Item 1  |
| # | 2 | 6 | 4 |12 | Item 2  |
| # | 2 | 4 | 4 |10 | Item 3  |
| # | 2 | 6 | 3 |11 | Item 4  |
|---+---+---+---+---+-|
| # |   |   |   |40 | 400.00  |
| ^ |   |   |   |   tot | result  |
| $ |   |   |   |   | kval=10 |
|---+---+---+---+---+-|
#+TBLFM: $5=$2+$3+$4::$tot=vsum(@[EMAIL PROTECTED])::$result=$tot*$kval;%.2f

If I edit any of the values in columns A, B, C and do C-u C-c C-c then
the total (tot) value is recalculated but result is not.  Doing C-u C-c
C-c a second time recalculates result based on the new tot value.

Is there a way to do this in a single table recalculation?


`C-u C-u C-c C-c' iterates a table until it is stable and in this way
takes care of formulas depending on calculated fields.

If you want to do this all the time you can do something like

(add-hook 'org-mode-hook
  (lambda () (local-set-key [f5]
   (lambda () (interactive) (org-table-recalculate 
'(16))


- Carsten



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Table calculation question

2007-08-26 Thread Bernt Hansen
Carsten Dominik <[EMAIL PROTECTED]> writes:

> `C-u C-u C-c C-c' iterates a table until it is stable and in this way
> takes care of formulas depending on calculated fields.

Thanks Carsten!  I wasn't aware of that feature :)

Regards,
Bernt



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] orgstruct-mode error

2007-08-26 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Aug 26, 2007, at 0:48, David O'Toole wrote:



I am using org 5.05 and get this error when doing org-cycle in an
emacs-lisp-mode buffer (with Orgstruct mode on)


Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  re-search-forward(nil 6690 t)
  org-cycle-hide-drawers(contents)
  run-hook-with-args(org-cycle-hide-drawers contents)
  org-cycle(t)
  org-cycle-global()
  call-interactively(org-cycle-global)
  recursive-edit()
  byte-code("Æ	@Ç=!ÈÉÊ\"ËÉ!A@)¢Ì=!ÈÍÊ\"Î!Ï 
Ð	!\fcÑed\"VWebÒ¥y`dbÒ¥Zy`|)ÓcebÔÕÖ \"× ÔØ!ÙÊÔØ!ŠÚ +Ù" 
[unread-command-char debugger-args x debugger-buffer noninteractive 
debugger-batch-max-lines -1 debug backtrace-debug 4 t backtrace-frame 
lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer 
count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil 
recursive-edit middlestart buffer-read-only standard-output] 4)

  debug(error (wrong-type-argument stringp nil))
  re-search-forward(nil 6690 t)
  org-cycle-hide-drawers(contents)
  run-hook-with-args(org-cycle-hide-drawers contents)
  org-cycle(t)
  org-cycle-global()
  call-interactively(org-cycle-global)


Here is the code I use to set up the buffer:


;; global consistent org cycling keys

(defun org-cycle-global ()
  (interactive)
  (org-cycle t))

(defun org-cycle-local ()
  (interactive)
  (save-excursion
(move-beginning-of-line nil)
(org-cycle)))

(global-set-key (kbd "M-[") 'org-cycle-global)
(global-set-key (kbd "M-]") 'org-cycle-local)

(add-hook 'emacs-lisp-mode-hook #'orgstruct-mode)

 Fontifying todo items outside of org-mode

(defface todo-comment-face '((t (:background "red" :foreground 
"yellow" :weight bold :bold t))) "Face for TODO in code buffers.")

(defvar todo-comment-face 'todo-comment-face)
(defun fontify-todo ()
  (font-lock-add-keywords nil '(("\\<\\(TODO\\)\\>"
 (1 todo-comment-face t)

(add-hook 'emacs-lisp-mode-hook #'fontify-todo)


(defface headline-face '((t (:foreground "white" :underline "white" 
:background "navyblue"))) "Face for headlines.")

(defvar headline-face 'headline-face)

(defun fontify-headline ()
  (font-lock-add-keywords nil '(("^* \\(.*\\)\\>"
 (1 headline-face t)


(add-hook 'emacs-lisp-mode-hook #'fontify-headline)




--
David O'Toole
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: request: face for „...“ a t collapsed sections

2007-08-26 Thread Carsten Dominik


On Aug 26, 2007, at 23:14, Daniel Clemente wrote:


Hi,


I have this in my emacs:

,
| ;;; Making fold markers ("...")  more visible
|
| (defface selective-display
|   '((default :background "lightgrey")
| (((supports :underline "red")) :underline "red"))
|   "Face used for fold markers like ...")
|
| (unless standard-display-table
|   (setq standard-display-table (make-display-table)))
|
| (set-display-table-slot standard-display-table 'selective-display
| (vconcat (mapcar
|   (lambda (c)
| (make-glyph-code c
'selective-display))
|   "...")))
`



Ah, this is how to change the font!  Thanks!


   Wow, that seems a very low-level solution, but it works. I think it
would be better if org-mode would set the „..." directly with another
face.


The difference is that this hack works globally, not only in
org-mode.  So if you use outline-minor-mode, for example,
it will also work there.

Org-mode can modify the ellipsis (currently only with a different
string, not with a different face) using the variable `org-ellipsis'.
However, I do recommend using Tassilo's global solution over an
org-mode specific one.

- Carsten



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode