unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: how can let .emacs takes effect in Emacs?
  2003-05-26  4:37 how can let .emacs takes effect in Emacs? Xiong Guanglei
@ 2003-05-25  7:17 ` marc0
  2003-05-25  7:20 ` Harry Putnam
  2003-05-25 12:08 ` Daniel Jensen
  2 siblings, 0 replies; 4+ messages in thread
From: marc0 @ 2003-05-25  7:17 UTC (permalink / raw)


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

Xiong Guanglei <xgl99@mails.tsinghua.edu.cn> writes:

> I sometimes change .emacs and 
> I wonder how to let Emacs immediate know that change.

Some functions that you can use are:

  eval-buffer

  eval-last-sexp

  load-file

- -- 
marc0@autistici.org http://www.autistici.org/marc0
2143 9E77 D5E6 115A 48AD  A170 D0EE F736 4E88 99C2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE+0G3s0O73Nk6ImcIRAvn1AJ9LcfNMZwsZ1dk+611RaGsSq3fGQwCgmowR
YjkpurzU1BmA0dE7w7A4vZo=
=Z/0S
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how can let .emacs takes effect in Emacs?
  2003-05-26  4:37 how can let .emacs takes effect in Emacs? Xiong Guanglei
  2003-05-25  7:17 ` marc0
@ 2003-05-25  7:20 ` Harry Putnam
  2003-05-25 12:08 ` Daniel Jensen
  2 siblings, 0 replies; 4+ messages in thread
From: Harry Putnam @ 2003-05-25  7:20 UTC (permalink / raw)


Xiong Guanglei <xgl99@mails.tsinghua.edu.cn> writes:

> I sometimes change .emacs and 
> I wonder how to let Emacs immediate know that change.

M-x load-file <RET> .emacs <RET> is one way.
But depending on what is already loaded I guess it might cause
unexpected problems.  (although unlikely I'd say)

Maybe a more surefile way would be to evaluate only the region
containing the addition.

Set mark C-<SPC> at beginning of region containing change
set point at the end. (put the cursor there)
Then say M-x eval-region to read that code into emacs.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how can let .emacs takes effect in Emacs?
  2003-05-26  4:37 how can let .emacs takes effect in Emacs? Xiong Guanglei
  2003-05-25  7:17 ` marc0
  2003-05-25  7:20 ` Harry Putnam
@ 2003-05-25 12:08 ` Daniel Jensen
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Jensen @ 2003-05-25 12:08 UTC (permalink / raw)


Xiong Guanglei <xgl99@mails.tsinghua.edu.cn> writes:

> I sometimes change .emacs and 
> I wonder how to let Emacs immediate know that change.

For small changes, just press some buttons.

C-x C-e: Evaluate sexp before point; print value in minibuffer.
C-M-x: Evaluate the top-level form containing point, or after point.

-- 
Daniel Jensen
Editing is a rewording activity.
Swedish holiday today: Mors dag

^ permalink raw reply	[flat|nested] 4+ messages in thread

* how can let .emacs takes effect in Emacs?
@ 2003-05-26  4:37 Xiong Guanglei
  2003-05-25  7:17 ` marc0
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Xiong Guanglei @ 2003-05-26  4:37 UTC (permalink / raw)



I sometimes change .emacs and 
I wonder how to let Emacs immediate know that change.

-- 
Guanglei Xiong
Department of Automation
Tsinghua University			I love Linux,and Linux loves me!
Beijing,P.R.China			I like CV,and hope CV likes me!
100084

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-26  4:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-26  4:37 how can let .emacs takes effect in Emacs? Xiong Guanglei
2003-05-25  7:17 ` marc0
2003-05-25  7:20 ` Harry Putnam
2003-05-25 12:08 ` Daniel Jensen

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).