emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] searchable refcard?


From: Sebastian Rose
Subject: Re: [Orgmode] searchable refcard?
Date: Tue, 02 Dec 2008 15:35:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Carsten,


thanks for the hint!

Maybe I'll try to learn a little more elisp between the years :-)


I tried it the stupid way, just to see it working:


(defun org-context-help ()
  "Context help for org-mode"
  (interactive)
  (if (org-at-table-p)
      (info "(org)tables")
    (if (org-at-timestamp-p)
        (info "(org)timestamps")
      (if (org-at-item-checkbox-p)
          (info "(org)Checkboxes")
        (if (org-at-item-p)
            (info "(org)plain lists")
          (if (org-at-heading-p)
              (info "(org)headlines")
            (if (org-at-property-p)
                (info "(org)Properties and Columns")
              )))))))


Just for the fun of it.



I tried to use a list like this:

(setq org-context-help-map
      '(('org-at-item-checkbox-p "(org)Checkboxes" "(org)plain lists")
        ('org-at-item-p "(org)plain lists" "(org)Checkboxes")
        ('org-at-property-p "(org)Properties and Columns")
        ('org-at-timestamp-p "(org)timestamps" "(org)deadlines and scheduling")
        ('org-at-table-p "(org)tables")
        ('org-at-heading-p "(org)headlines")))


and dolist and eval, but I couldn't get my head around those `non-local
exits' (throw and catch). It should work with a list, to offer several
sections in the manual per context. And such a list would be easy to
maintain.



Still an elisp-dyslexic,


    Sebastian






Carsten Dominik <address@hidden> writes:
> On Dec 2, 2008, at 1:28 PM, Sebastian Rose wrote:
>
>>
>> Just courious:
>>
>> How would I reveal the context at point?
>> Would I use those predicates as `org-at-xxx-p'?
>
>
> C-h f org-context RET
>
> We can extend this function if needed for context help.
>
> - Carsten
>

-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover

Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: s.rose emma-stil de, sebastian_rose gmx de
Http:  www.emma-stil.de




reply via email to

[Prev in Thread] Current Thread [Next in Thread]