all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to customize an option to a dynamic value (computed by lisp form)
@ 2016-08-23 20:26 Jorge
  2016-08-24 17:50 ` Pascal J. Bourguignon
  0 siblings, 1 reply; 12+ messages in thread
From: Jorge @ 2016-08-23 20:26 UTC (permalink / raw)
  To: help-gnu-emacs

Hi.  I set three options to a dynamic value, using the value of the option
`org-directory'.  Now my custom-set-variables call in init.el includes the
following:

   '(org-agenda-files
     (list
      (concat org-directory "/agenda/")
      "~/Dropbox/wanessa_e_jorge/administração_clínica/derma-prime.org"))
   [...]
   '(org-icalendar-combined-agenda-file (concat org-directory "/org.ics"))
   [...]
   '(org-mobile-inbox-for-pull (concat org-directory "/agenda/from-mobile.org"))

The problem is that when I try to customize one of these three options, the
customize buffer does not know that the value was computed dynamically.  For
example, the customize buffer for org-mobile-inbox-for-pull shows the value as
simply "~/org/agenda/from-mobile.org".  This means that if I edit the value to
"~/org/agenda/from-mobile42.org" and save the customization, it will be written
to init.el as a string literal, no longer respecting org-directory.  Then if I
later change org-directory I will have problems.

Previously I worked around this problem by setting these options manually
(editing org-init.el, which is called by init.el), but I think the ideal would
be to use customize, so I decided to ask here.  I have already searched Google
and the list archives.

Thank you for your attention.
-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



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

end of thread, other threads:[~2016-08-30 20:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-23 20:26 How to customize an option to a dynamic value (computed by lisp form) Jorge
2016-08-24 17:50 ` Pascal J. Bourguignon
2016-08-25 17:55   ` Jorge
2016-08-25 20:54     ` Drew Adams
2016-08-26 12:54       ` Jorge
2016-08-26 13:26         ` Jorge
2016-08-26 14:28         ` Drew Adams
2016-08-26 19:02           ` Jorge
2016-08-26 20:18             ` Jorge
2016-08-26 20:59             ` Drew Adams
2016-08-27 11:50               ` tomas
2016-08-30 20:42               ` Jorge

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.