This works. :) Thanks.



>From .emacs

; Enable literal links 
(defun turn-on-literal-links ()
  "enable literal links."
  (interactive)
  (org-remove-from-invisibility-spec '(org-link))
  (org-restart-font-lock))

(add-hook 'org-mode-hook 'turn-on-literal-links)





-----Original Message-----
From: Eddward DeVilla [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2008 1:02 PM
To: Parker, Matthew
Cc: Emacs-orgmode@gnu.org
Subject: Re: [Orgmode] Turn on "Hyperlinks > Literal Links "

Here is a snip from my .emacs.  Maybe you could does something similar
to run your code.

        (add-hook 'org-mode-hook 'turn-on-font-lock)  ; org-mode buffers
only
        (defun my-org-mode-setup ()
          "Run some setup for an org buffer"
          (interactive)
          (setq show-trailing-whitespace t))
        (add-hook 'org-mode-hook 'my-org-mode-setup)
        (require 'org-install)


Edd

On Mon, Aug 25, 2008 at 11:08 AM, Parker, Matthew <[EMAIL PROTECTED]>
wrote:
> Thanks I'll give that a try!
>
> -----Original Message-----
> From: Eddward DeVilla [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 23, 2008 2:12 PM
> To: Parker, Matthew
> Cc: Emacs-orgmode@gnu.org
> Subject: Re: [Orgmode] Turn on "Hyperlinks > Literal Links "
>
> You might be able to define a function that does that and call it from
> org-mode-hook.  I call some org specific code from the hook on my work
> systems.  I don't have access to them right now.  I can try to post an
> example Monday.
>
> Edd
>
> On Fri, Aug 22, 2008 at 10:32 AM, Parker, Matthew <[EMAIL PROTECTED]>
> wrote:
>> Is there a way to set "Hyperlinks > literal links" on by default?
>>
>>
>>
>> I found the elisp that works w/in an org buffer, but this fails if I
> put it
>> in .emacs.
>>
>>
>>
>> ; turn on literal links
>>
>> (progn
>>
>>   (org-remove-from-invisibility-spec '(org-link))
>>
>>   (org-restart-font-lock)
>>
>> )
>>
>>
>>
>>
>>
>> Thanks,
>> Matt
>>
>>
>>
>> _______________________________________________
>> 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

Reply via email to