Peter Gragert <pkhgrag...@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