Age | Commit message (Collapse) | Author |
|
* 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.
|
|
|