all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* lisp expressions
@ 2016-12-15 22:49 Matthew Pritchard
  2016-12-16  0:56 ` Eric Abrahamsen
  2016-12-16  8:52 ` tomas
  0 siblings, 2 replies; 3+ messages in thread
From: Matthew Pritchard @ 2016-12-15 22:49 UTC (permalink / raw)
  To: help-gnu-emacs

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")




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: lisp expressions
  2016-12-15 22:49 lisp expressions Matthew Pritchard
@ 2016-12-16  0:56 ` Eric Abrahamsen
  2016-12-16  8:52 ` tomas
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Abrahamsen @ 2016-12-16  0:56 UTC (permalink / raw)
  To: help-gnu-emacs

Matthew Pritchard <wintermute24x7@icloud.com> writes:

> 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")

M-x customize-option RET org-mobile-directory




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: lisp expressions
  2016-12-15 22:49 lisp expressions Matthew Pritchard
  2016-12-16  0:56 ` Eric Abrahamsen
@ 2016-12-16  8:52 ` tomas
  1 sibling, 0 replies; 3+ messages in thread
From: tomas @ 2016-12-16  8:52 UTC (permalink / raw)
  To: help-gnu-emacs

-----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-----



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-16  8:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-15 22:49 lisp expressions Matthew Pritchard
2016-12-16  0:56 ` Eric Abrahamsen
2016-12-16  8:52 ` tomas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.