summaryrefslogtreecommitdiff
path: root/desktop-conf.el
AgeCommit message (Collapse)Author
2023-06-18desktop: Do not save bookmarks in the hookJSDurand
* desktop-conf.el (durand-bookmark-save): I do not want to save bookmarks as a consequence of saving the desktop file now. (desktop-save-hook): Remove the previous function from the hook. (ctl-x-r-map): And remove the binding to save desktop files. Basically my plan is to have a keybinding that saves the bookmarks only, by default. When I want to save the desktop file as well, I pass an interactive universal prefix argument to the responsible function. I think this works better than to save both by default: it is kind of a waste of computing power, from my point of view. But of course I still want to save bookmarks if Emacs accidentally crashes and it saves the desktop file because of that. Thus we shall use a variable to control this behaviour, in order not to cause infinite recursion.
2023-06-18desktop + bookmark: bind C-x r s to save desktop.JSDurand
* bookmark-conf.el (ctl-x-r-map): Remove the original binding. * desktop-conf.el (durand-desktop-save-a): Do not ask questions when saving. (ctl-x-r-map): Bind 'C-x r s' to save the desktop file, as well as the bookmarks. Saving bookmarks does not run a hook, whereas saving the desktop file runs a hook, so it is easier to call `desktop-save` which also saves bookmarks than the other way around.
2022-11-24desktop: silently save bookmarksJSDurand
* desktop-conf.el (desktop-save-hook, durand-bookmark-save): Do not display messages emitted by `bookmark-save' automatically, but log them to the *Messages* buffer.
2022-11-24desktop: save bookmarks while saving desktopJSDurand
* desktop-conf.el (desktop-save-hook): Also save bookmarks while saving the desktop file.
2021-01-29Change the directory to .emacs.d now.JSDurand
Now I don't have to use a special command to launch Emacs. And the configuration files are placed in the normal position now.
2021-01-09temporary stateJSDurand