diff options
author | Tom Willemse | 2013-08-07 22:05:29 +0200 |
---|---|---|
committer | Tom Willemse | 2013-08-07 22:08:01 +0200 |
commit | 9e30a9cd87c034156fadef62a53aba81317a9db5 (patch) | |
tree | bee9fe639526600ec7a702381de81cc0c0031710 /README.org | |
parent | 577cc09c74a976622f93f38d03201d7d9379327f (diff) | |
download | desktop-registry-9e30a9cd87c034156fadef62a53aba81317a9db5.tar.gz desktop-registry-9e30a9cd87c034156fadef62a53aba81317a9db5.zip |
Signal error and specify name
- desktop-registry.el (desktop-registry-add-directory): Add an optional
NAME parameter which will be asked for (in an interactive context)
when the universal argument is used. Print a message if the specified
directory has already been registered, signal an error when the (given
or generated) name has already been used and only add the directory if
neither of these conditions occur.
(desktop-registry-add-current-desktop): Add optional NAME parameter
which will be asked for (in an interactive context) when the universal
argument is used and pass it on to `desktop-registry-add-directory'.
Diffstat (limited to 'README.org')
-rw-r--r-- | README.org | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -14,13 +14,6 @@ to fix that. * Usage - You can use =desktop-registry-prepend-directory= to add a new - directory to the registry, or - =desktop-registry-prepend-current-desktop= to add the currently loaded - desktop to the registry. If you enable - =desktop-registry-auto-register= it will automatically add new desktop - files to the registry when you use =desktop-save=. - To switch between desktops you can use =desktop-registry-change-desktop=, this will prompt (with completion) for the directory you would like to load. @@ -32,6 +25,17 @@ to fix that. the name you can use =desktop-registry-rename-desktop= to give it a new name. +** Adding new desktops + + You can use =desktop-registry-add-directory= to add a new directory + to the registry, or =desktop-registry-add-current-desktop= to add the + currently loaded desktop to the registry. With either of these + function you can use the universal argument (=C-u=) to specify a + name for the desktop as well. + + If you enable =desktop-registry-auto-register= it will automatically + add new desktop files to the registry when you use =desktop-save=. + ** With org-capture-templates The =desktop-registry-current-desktop= can be used to insert the |