* Re: re-loading .emacs file
[not found] <bfoa38$pd1$1@mughi.cs.ubc.ca>
@ 2003-10-05 3:30 ` fra
[not found] ` <3F1FFC60.2030208@yahoo.com>
1 sibling, 0 replies; 2+ messages in thread
From: fra @ 2003-10-05 3:30 UTC (permalink / raw)
On Thu, 24 Jul 2003 11:49:25 +0200, Lowell wrote:
type M-x load-file ~/.emacs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: re-loading .emacs file
[not found] ` <bfqtkc$a82$1@mughi.cs.ubc.ca>
@ 2003-10-17 2:46 ` David Vanderschel
0 siblings, 0 replies; 2+ messages in thread
From: David Vanderschel @ 2003-10-17 2:46 UTC (permalink / raw)
"Lowell" <lkirsh@cs.ubc.ca> wrote in message
news:bfqtkc$a82$1@mughi.cs.ubc.ca...
> It's a bit of a pain to have to restart emacs all the time (I'm learning
> elisp and working on my .emacs file constantly), but only a _bit_ of a
> pain.
For really rapid turnaround, you can just do
eval-buffer after you have changed it. There is a
caveat here: You must organize your initialization
code so that it works correctly when executed more
than once. For example, do not add things to lists
when they are already there. add-hook is a function
which behaves correctly. For my own purposes, I also
created
(defun dv-add-to-list (thing list-name) "Add only if not already there."
(let ((list (eval list-name)))
(if (not (member thing list))
(set list-name (cons thing list)))))
Eg, (dv-add-to-list (cons "\\.nr$" 'nroff-mode) 'auto-mode-alist)
Regards,
David V.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-17 2:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <bfoa38$pd1$1@mughi.cs.ubc.ca>
2003-10-05 3:30 ` re-loading .emacs file fra
[not found] ` <3F1FFC60.2030208@yahoo.com>
[not found] ` <bfp6rk$rch$1@mughi.cs.ubc.ca>
[not found] ` <3F20420C.8010705@yahoo.com>
[not found] ` <bfqtkc$a82$1@mughi.cs.ubc.ca>
2003-10-17 2:46 ` David Vanderschel
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).