help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: edit .emacs and then ....


From: Tassilo Horn
Subject: Re: edit .emacs and then ....
Date: Fri, 15 Jun 2007 14:53:53 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

Andy Chambers <achambers.home@googlemail.com> writes:

Hi,

> The load-file function evaluates all the elisp functions in a given
> file.  To apply this to your cool macros, do
>
> M-x load-file RET ~/.emacs
>
> Whilst you work on your .emacs,

Another yet simpler solution would be only to evaluate the new cool
funtion or macro, e.g.

(defun my-cool-function ()
   ...)
        \
         \
      Place point behind the last closing paren and press `C-x C-e'.

,----[ C-h k C-x C-e ]
| C-x C-e runs the command eval-last-sexp
|   which is an interactive compiled Lisp function in `lisp-mode.el'.
| It is bound to C-x C-e.
| (eval-last-sexp EVAL-LAST-SEXP-ARG-INTERNAL)
| 
| Evaluate sexp before point; print value in minibuffer.
| Interactively, with prefix argument, print output into current buffer.
| 
| If `eval-expression-debug-on-error' is non-nil, which is the default,
| this command arranges for all errors to enter the debugger.
`----

Bye,
Tassilo
-- 
The glass is neither half-full nor half-empty: it's twice as big as it
needs to be.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]