From: uzibalqa <uzibalqa@proton.me>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Robert Pluim <rpluim@gmail.com>,
Drew Adams <drew.adams@oracle.com>,
uzibalqa via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: [External] : Saving variables for use between emacs sessions
Date: Thu, 15 Sep 2022 16:51:30 +0000 [thread overview]
Message-ID: <9NtSR1Mo-D0FKDHQrU7DS26HNA_Bzp59Tgk_tXgVrNdUBd_k7tmn3TDbA-nZ2ttXKMq1cZYjgsQaGuxbY5ngGZoUg1QAwumZu3BL7Slg8z8=@proton.me> (raw)
In-Reply-To: <87v8po6a5u.fsf@mbork.pl>
Sent with Proton Mail secure email.
------- Original Message -------
On Thursday, September 15th, 2022 at 1:26 PM, Marcin Borkowski <mbork@mbork.pl> wrote:
> On 2022-09-15, at 14:49, Robert Pluim rpluim@gmail.com wrote:
>
> > > > > > > On Thu, 15 Sep 2022 11:46:57 +0000, Drew Adams drew.adams@oracle.com said:
> >
> > >> How can I save variable that can be reused between emacs sessions?
> > Drew> Lots of ways. Some:
> >
> > Drew> 1. savehist.el
> > Drew> 2. desktop.el
> > Drew> 3. Bookmark+ bookmark variable-list bookmark
> >
> > Drew> https://www.emacswiki.org/emacs/BookmarkPlus#FunctionSequenceVarlistBookmarks
> >
> > Drew> 4. If it's a user option (defcustom), then in your `custom-file' (or init file).
> >
> > And in emacs-29, `define-multisession-variable', although thatʼs
> > intended more for packages than user config.
>
>
> Also, the `persist' package.
Right, I want to have a user option, but although I want to allow a user to set the value,
I also would like to set a value in an automatic way, using a function that does the
necessary calculations, and stares the answer in the variable.
How does one let a user change a value, and how can I save it automatically as well?
next prev parent reply other threads:[~2022-09-15 16:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-15 10:54 Saving variables for use between emacs sessions uzibalqa
2022-09-15 11:46 ` [External] : " Drew Adams
2022-09-15 12:49 ` Robert Pluim
2022-09-15 13:26 ` Marcin Borkowski
2022-09-15 14:57 ` Drew Adams
2022-09-15 16:51 ` uzibalqa [this message]
2022-09-15 17:23 ` Drew Adams
2022-09-16 0:56 ` uzibalqa
2022-09-16 2:19 ` Drew Adams
2022-09-16 2:40 ` uzibalqa
2022-09-16 7:30 ` Jean Louis
2022-09-16 8:05 ` uzibalqa
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='9NtSR1Mo-D0FKDHQrU7DS26HNA_Bzp59Tgk_tXgVrNdUBd_k7tmn3TDbA-nZ2ttXKMq1cZYjgsQaGuxbY5ngGZoUg1QAwumZu3BL7Slg8z8=@proton.me' \
--to=uzibalqa@proton.me \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=mbork@mbork.pl \
--cc=rpluim@gmail.com \
/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).