|
From: | Kevin Rodgers |
Subject: | Re: citation separation in reftex |
Date: | Fri, 16 Feb 2007 00:50:01 -0700 |
User-agent: | Thunderbird 1.5.0.9 (Macintosh/20061207) |
Tyler Smith wrote:
Thanks! I found the relevant section in reftex-do-citation: (let ((concat-keys (mapconcat 'car selected-entries ","))) and switched it to: (let ((concat-keys (mapconcat 'car selected-entries ", "))) 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 runautomatically? 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 ...)) -- Kevin Rodgers Denver, Colorado, USA
[Prev in Thread] | Current Thread | [Next in Thread] |