emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] org-git-link does not support locational information withi


From: Gregor Kappler
Subject: Re: [Orgmode] org-git-link does not support locational information within file
Date: Tue, 15 Feb 2011 21:15:23 +0100
User-agent: Notmuch/0.5-61-g21e97c5 (http://notmuchmail.org) Emacs/23.1.50.1 (i486-pc-linux-gnu)

Hi Leo,

> However, I think the bigger problem with org-git-link in its current
> incarnation is that it forces me to use git:// links for all files
> under version control, which is NOT what I want to do 90% of the time.
>  I have a quick hack to deal with this -- namely, commenting out
> 
> ;; (add-hook 'org-store-link-functions 'org-git-store-link t)
> 
> and using a separate keybinding for storing git links using the
> following function:
> 
> (defun org-git-store-link-interactively (arg)
>   "Store git link to current file."
>   (interactive "P")
>   (let ((org-store-link-functions (cons 'org-git-store-link
> org-store-link-functions)))
>     (call-interactively 'org-store-link arg)
> ))

Thanks a lot for this!

> 
> 
> In addition, I'm not crazy about using the "address@hidden" format for
> storing links by default, so I hacked something that uses SHA1
> instead...  I could post a patch if anyone is curious.
I would be interested, and I think SHA1 should be supported as it is so
common with git.

Cheers,
Gregor

-- 
--

Dr. Gregor Kappler

Fakultät für Psychologie 
Institut für Entwicklungspsychologie und 
Psychologische Diagnostik
http://www.univie.ac.at/Psychologie

Universität Wien
Liebiggasse 5
A-1010 Wien
mail: address@hidden
tel: +43 1 4277 47866



reply via email to

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