[Top][All Lists]

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

Re: key binding two commands

From: Kevin Rodgers
Subject: Re: key binding two commands
Date: Fri, 21 Nov 2003 09:49:47 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Reiner Steib wrote:

But a better solution IMHO would be to advice `TeX-command-master':

(defadvice TeX-command-master (around rs-TeX-command-master-save activate)
  "Save buffer before `TeX-command-master'"
  (message "Saving buffer")

If there aren't any forms after ad-do-it, you can just define a before
advice (and vice versa):

(defadvice TeX-command-master (before save-buffer activate)
  "Save the buffer first."

Kevin Rodgers

reply via email to

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