Age | Commit message (Collapse) | Author |
|
* desktop-conf.el (desktop-also-save-bookmarks): Check if the variable
`durand-saving-bookmarks` is bound, before checking its value.
|
|
* desktop-conf.el (desktop-also-save-bookmarks): Inhibit message when
saving bookmarks as a consequence of saving the desktop file.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* desktop-conf.el (desktop-save-hook): Also save bookmarks while
saving the desktop file.
|
|
Now I don't have to use a special command to launch Emacs. And the
configuration files are placed in the normal position now.
|
|
|