emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* request: face for „...“ at collapsed sections
@ 2007-08-26 17:47 Daniel Clemente
  2007-08-26 18:20 ` Carsten Dominik
       [not found] ` <876432gh8k.fsf@baldur.tsdh.de>
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Clemente @ 2007-08-26 17:47 UTC (permalink / raw)
  To: emacs-orgmode

  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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:  request: face for „...“ at collapsed sections
  2007-08-26 17:47 request: face for „...“ at collapsed sections Daniel Clemente
@ 2007-08-26 18:20 ` Carsten Dominik
       [not found] ` <876432gh8k.fsf@baldur.tsdh.de>
  1 sibling, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2007-08-26 18:20 UTC (permalink / raw)
  To: Daniel Clemente; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:  Re: request: face for „...“ at collapsed sections
       [not found] ` <876432gh8k.fsf@baldur.tsdh.de>
@ 2007-08-26 21:14   ` Daniel Clemente
  2007-08-27  4:13     ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Clemente @ 2007-08-26 21:14 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:  Re: request: face for „...“ at collapsed sections
  2007-08-26 21:14   ` Daniel Clemente
@ 2007-08-27  4:13     ` Carsten Dominik
  0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2007-08-27  4:13 UTC (permalink / raw)
  To: Daniel Clemente; +Cc: Tassilo Horn, emacs-orgmode


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-27  4:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-26 17:47 request: face for „...“ at collapsed sections Daniel Clemente
2007-08-26 18:20 ` Carsten Dominik
     [not found] ` <876432gh8k.fsf@baldur.tsdh.de>
2007-08-26 21:14   ` Daniel Clemente
2007-08-27  4:13     ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).