From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: lisp expressions
Date: Fri, 16 Dec 2016 09:52:43 +0100 [thread overview]
Message-ID: <20161216085243.GA11627@tuxteam.de> (raw)
In-Reply-To: <03258667-6FAC-4FD4-A491-0AC5BAA50316@icloud.com>
-----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-----
prev parent reply other threads:[~2016-12-16 8:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-15 22:49 lisp expressions Matthew Pritchard
2016-12-16 0:56 ` Eric Abrahamsen
2016-12-16 8:52 ` tomas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161216085243.GA11627@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).