From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: lisp expressions Date: Fri, 16 Dec 2016 09:52:43 +0100 Message-ID: <20161216085243.GA11627@tuxteam.de> References: <03258667-6FAC-4FD4-A491-0AC5BAA50316@icloud.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed X-Trace: blaine.gmane.org 1481878402 17817 195.159.176.226 (16 Dec 2016 08:53:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2016 08:53:22 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 16 09:53:18 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHoGT-0003yC-M2 for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Dec 2016 09:53:17 +0100 Original-Received: from localhost ([::1]:59170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHoGY-0006Br-0E for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Dec 2016 03:53:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHoG3-000642-Bb for help-gnu-emacs@gnu.org; Fri, 16 Dec 2016 03:52:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHoFx-0006Nn-T4 for help-gnu-emacs@gnu.org; Fri, 16 Dec 2016 03:52:51 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:44377 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHoFx-0006Md-NJ for help-gnu-emacs@gnu.org; Fri, 16 Dec 2016 03:52:45 -0500 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1cHoFv-0003Ad-J4 for help-gnu-emacs@gnu.org; Fri, 16 Dec 2016 09:52:43 +0100 In-Reply-To: <03258667-6FAC-4FD4-A491-0AC5BAA50316@icloud.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111966 Archived-At: -----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-----