[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: citation separation in reftex
From: |
Tyler Smith |
Subject: |
Re: citation separation in reftex |
Date: |
Fri, 16 Feb 2007 13:12:45 GMT |
User-agent: |
slrn/0.9.8.1pl1 (Debian) |
On 2007-02-16, Kevin Rodgers <kevin.d.rodgers@gmail.com> wrote:
> Tyler Smith wrote:
>> I put the modified function in scratch and c-x c-e to run it, and now
>> the function works as I want. How do I get the modifed code to run
>> automatically? I tried putting it in .emacs but that doesn't work.
>
> That indicates that the original function definition is loaded after
> your .emacs file, probably because the reftex library isn't actually
> loaded until some reftex command is used (i.e. autoloaded).
>
> You could either explicitly load reftex before you redefine the
> function:
>
> (require 'reftex)
> (defun reftex-do-citation ...)
>
> Or defer the function redefinition until after reftex has been loaded:
>
> (eval-after-load "reftex" '(defun reftex-do-citation ...))
>
Neither of those seems to work :( I tried adding a hook as well, but
that also didn't work:
(add-hook 'reftex-mode-hook 'reftex-do-citation)
--
Regards,
Tyler Smith
- citation separation in reftex, Tyler Smith, 2007/02/15
- Re: citation separation in reftex, Jim Ottaway, 2007/02/15
- Message not available
- Re: citation separation in reftex, Tyler Smith, 2007/02/15
- Re: citation separation in reftex, Kevin Rodgers, 2007/02/16
- Re: citation separation in reftex, Jim Ottaway, 2007/02/16
- Message not available
- Re: citation separation in reftex,
Tyler Smith <=
- Re: citation separation in reftex, Kevin Rodgers, 2007/02/20
- Message not available
- Re: citation separation in reftex, Tyler Smith, 2007/02/21
- Re: citation separation in reftex, Jim Ottaway, 2007/02/21
- Message not available
- Re: citation separation in reftex, Tyler Smith, 2007/02/21
- Re: citation separation in reftex, Kevin Rodgers, 2007/02/21