[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Old user needs help
From: |
Ihor Radchenko |
Subject: |
Re: Old user needs help |
Date: |
Tue, 14 Jun 2022 15:13:11 +0800 |
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