Since supercite's overloading routines are usually not loaded into your
emacs session until they are needed, you should add the following small
function to your `.emacs' file. This will load (via the
require
) the supercite overloading package, and then actually
overload the functions for the particular reader your are using. Only
those original reader functions already bound will be overloaded, and
they will only be overloaded once per session.
(defun my-sc-overload-hook () (require 'sc-oloads) ; be sure this file is on your load-path (sc-overload-functions))
Next, you will need to find a hook in the reader which will be called at
an appropriate time to execute my-sc-overload-hook
. It can be
something of a guessing game to find the right hook, but fortunately
that's already been done for all the readers supercite currently knows
about. You should put one of these two lines in your .emacs
file:
(setq news-reply-mode-hook 'my-sc-overload-hook) ; for RNEWS,GNEWS,GNUS (setq mail-setup-hook 'my-sc-overload-hook) ; for RMAIL,PCMAIL,GNUS
Also for GNEWS users, you need to put the following line in your
.emacs
file:
(setq gnews-ready-hook 'my-sc-overload-hook) ; for GNEWS
Note that if you have `sc-oloads.el' compiled into your emacs
image, you do not need my-sc-overload-hook
. Instead just use one
of the following code fragments:
(setq news-reply-mode-hook 'sc-overload-functions) ; for RNEWS,GNEWS,GNUS (setq mail-setup-hook 'sc-overload-functions) ; for RMAIL,PCMAIL,GNUS (setq gnews-ready-hook 'sc-overload-functions) ; for GNEWS (need both)