summaryrefslogtreecommitdiff
path: root/desktop-conf.el
AgeCommit message (Collapse)Author
2023-07-27desktop: disable auto-savingJSDurand
* desktop-conf.el (desktop-auto-save-timeout): Auto-saving causes some trouble for me.
2023-06-19desktop: fix the previous issue of a variable not bound.JSDurand
* desktop-conf.el (desktop-also-save-bookmarks): Check if the variable `durand-saving-bookmarks` is bound, before checking its value.
2023-06-19desktop: inhibit message when saving bookmarksJSDurand
* desktop-conf.el (desktop-also-save-bookmarks): Inhibit message when saving bookmarks as a consequence of saving the desktop file.
2023-06-18desktop and bookmark: proper save mechanismJSDurand
* bookmark-conf.el (durand-saving-bookmarks): This variable indicates whether or not we are saving bookmarks already. (#'bookmark-write-file): Just a formating change. (durand-save-bookmark-or-desktop): Save bookmarks and/or the desktop file, depending on its argument. (ctl-x-r-map): Bind 'C-x r s' to `durand-save-bookmark-or-desktop`. * desktop-conf.el (durand-saving-bookmarks): In case this variable is not defined, silence the errors. (desktop-also-save-bookmarks): If we are not already saving bookmarks, save the bookmarks as well. (desktop-save-hook): Add `desktop-also-save-bookmarks` to this hook, so that when saving desktop and not already saving bookmarks, Emacs can automatically save bookmarks as well.
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