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

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

Re: lisp expressions


From: tomas
Subject: Re: lisp expressions
Date: Fri, 16 Dec 2016 09:52:43 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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

On Thu, Dec 15, 2016 at 02:49:16PM -0800, Matthew Pritchard wrote:
> I want this expression to take effect but i do not want to hand key my .emacs 
> file.Is this what eval expression does? if not what is a simple way to have 
> it take effect and be saved
> 
>  (setq org-mobile-directory "~/Dropbox/MobileOrg")

For this specific case, see Eric's answer (if you don't want the
customization to touch your .emacs, just "set for the current
session"). Customize is considered the "Right Way" to set such
configuration items.

In general, yes: eval expression asks you to enter an expression
(in the minibuffer) which is then evaluated.

A bit more comfortable is entering the expression in a scratch
buffer which is in Lisp mode (the start-up buffer named *scratch*
fits this description -- what a coincidence ;), put point somewhat
after the expression, and hit C-x C-e ("eval-last-sexp"). This
is nice, because you can keep your expressions nicely formatted
and you can modify them until they behave the way you like.

Regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlhTq1sACgkQBcgs9XrR2kaXuACeMhB+pduMUWl5vSkUV9G/k4Qg
/U8An2kHF09CmuBSRHGoBgVZ0w6SMiRI
=8vBh
-----END PGP SIGNATURE-----



reply via email to

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