all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Peter Gragert <pkhgragert@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Old user needs help
Date: Tue, 14 Jun 2022 15:13:11 +0800	[thread overview]
Message-ID: <8735g7hg54.fsf@localhost> (raw)
In-Reply-To: <CACfeMhN4ZhTWOt0528mUFviAZ0ai4=2FEKj_3SVG_iqP41OqnQ@mail.gmail.com>

Peter Gragert <pkhgragert@gmail.com> writes:

> For example I have a juni2022.org file and would like that that org-file is
> opened automatically on a click on the emacs desktop short-cut icon.
> (years ago something in init.el (load-file "..." )if  I remember correctly

You can put (find-file "...") near the end of your init.el

See
https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html
and
https://www.gnu.org/software/emacs/manual/html_node/emacs/Visiting.html

Alternatively, you can achieve a similar behavior using
desktop-save-mode. desktop-save-mode will make Emacs remember all the
open files just before closing and later restore them when you open
Emacs again.
See
https://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html

Hope if helps.

Best,
Ihor


      reply	other threads:[~2022-06-14  7:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-13 10:56 Old user needs help Peter Gragert
2022-06-14  7:13 ` Ihor Radchenko [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8735g7hg54.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pkhgragert@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.
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.