unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Exal de Jesus Garcia Carrillo <no-spam@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: load some code after execute a function
Date: Wed, 29 Aug 2007 12:30:17 -0500	[thread overview]
Message-ID: <87wsvegseu.fsf@gnu.org> (raw)
In-Reply-To: 1187740441.364697.148450@l22g2000prc.googlegroups.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

someusername em gnu.emacs.help escreveu:

> This is the question, I want to load some code when I execute a code,
> for example, when I execute "erc" this code should be executed:
> (require 'bar)
> (my-foo-bar)

You need to add a hook.

- -- 
Spam protection: 
In my e-mail remplace the words `no-spam' with `exal'.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFG1a0ooZmxoVJRtGIRAlSvAJ9zCuQ4fSilXOKNfiMCZRk9tDVKewCghf6G
AxMhoCTzr57NQApO7MQ9Mqs=
=WE85
-----END PGP SIGNATURE-----

      parent reply	other threads:[~2007-08-29 17:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-21 23:54 load some code after execute a function someusernamehere
2007-08-22 14:48 ` Joel J. Adamson
2007-08-24 21:47 ` David Kastrup
2007-08-29 17:30 ` Exal de Jesus Garcia Carrillo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wsvegseu.fsf@gnu.org \
    --to=no-spam@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).