[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use "if" in lisp
From: |
Teng Wang |
Subject: |
Re: how to use "if" in lisp |
Date: |
Fri, 16 Nov 2007 22:56:55 -0600 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Tim X <timx@nospam.dev.null> writes:
> Teng Wang <twang.umn@gmail.com> writes:
>
>> Thank you for your help.
>>
>> I think about it for a while. I think my design is sort of
>> nonsense. Since .emacs only be loaded once when start up. When I
>> change the buffer, it cannot run again.
>>
>> So now, I am wondering: is there any way to make it run on fly?
>>
>
> Can I suggest you let us know what it is you want to do as then we can
> possibly give you better alternative solutions. I'm guessing that what you
> are really looking for is how to make some elisp run when you enter a
> particular mode. If this is the case, what you are looking for is known in
> emacs as a 'hook'. Many modes provide various hooks that are run a certain
> times, such as wehn a mode is first loaded. Using hooks is one of the
> standard ways to customize a mode.
Yes, I just want to run some function to particular mode, for example:
run abbrev-mode when entering LaTeX-mode. And yesterday I read the
manual again and I found there is LaTeX-mode-hook variable. So now, I
am happy.
But Thank you all the same.
>
> Tim
Best,
----
Teng
- how to use "if" in lisp, Teng Wang, 2007/11/16
- Re: how to use "if" in lisp, Mirko, 2007/11/15
- Re: how to use "if" in lisp, Joel J. Adamson, 2007/11/15
- Re: how to use "if" in lisp, Joel J. Adamson, 2007/11/15
- Re: how to use "if" in lisp, Sebastian Tennant, 2007/11/15
- Re: how to use "if" in lisp, Teng Wang, 2007/11/16
- Re: how to use "if" in lisp, Xah Lee, 2007/11/15
- Re: how to use "if" in lisp, Joel J. Adamson, 2007/11/16
- Re: how to use "if" in lisp, Teng Wang, 2007/11/16
- Re: how to use "if" in lisp, Tim X, 2007/11/16
- Re: how to use "if" in lisp,
Teng Wang <=