* load some code after execute a function
@ 2007-08-21 23:54 someusernamehere
2007-08-22 14:48 ` Joel J. Adamson
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: someusernamehere @ 2007-08-21 23:54 UTC (permalink / raw)
To: help-gnu-emacs
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)
thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: load some code after execute a function
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
2 siblings, 0 replies; 4+ messages in thread
From: Joel J. Adamson @ 2007-08-22 14:48 UTC (permalink / raw)
To: help-gnu-emacs
someusernamehere <someusernamehere@gmail.com> writes:
> 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)
That's called a "hook." Consult the Emacs lisp manual.
Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: load some code after execute a function
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
2 siblings, 0 replies; 4+ messages in thread
From: David Kastrup @ 2007-08-24 21:47 UTC (permalink / raw)
To: help-gnu-emacs
someusernamehere <someusernamehere@gmail.com> writes:
> 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)
C-h f defadvice RET
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: load some code after execute a function
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
2 siblings, 0 replies; 4+ messages in thread
From: Exal de Jesus Garcia Carrillo @ 2007-08-29 17:30 UTC (permalink / raw)
To: help-gnu-emacs
-----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-----
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-29 17:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).