You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bookmarks are paths to files or directories that make it easy to open them. Each
358
+
bookmark has a name and possibly a position associated with it.
359
+
360
+
They are not persisted automatically, so you can set temporary bookmarks for a work session.
361
+
362
+
The interactive commands are the following.
363
+
364
+
-`bookmark-set RET name RET`, used to **create a new bookmark**, which points to the file
365
+
of the current buffer and the current cursor position. The name of the bookmark will be
366
+
prompted for.
367
+
- If you wish to not associate a position with the bookmark, you can use `bookmark-set-no-position`. This might be useful, if another package is managing file positions for you.
368
+
- see also: `bookmark-rename`, `bookmark-relocate`, `bookmark-set-no-position-no-overwrite`, `bookmark-set-no-overwrite`.
369
+
-`bookmark-save` is used to save the bookmarks to disk.
370
+
- they are not saved automatically, so that you can set temporary bookmarks for a work session. To do so, see below.
371
+
-`bookmark-jump`: open a previously set bookmark.
372
+
-`bookmark-load` loads the bookmarks from disk.
373
+
- the variable `*file*` configures from which file the bookmark information is read from/saved to:
374
+
375
+
```lisp
376
+
(defvar *file* #P"bookmarks.lisp-expr"
377
+
"File in which bookmarks are saved.
378
+
If the file is a relative path, it is relative to LEM-HOME.")
379
+
```
380
+
381
+
-`bookmark-delete` prompts for a bookmark name and deletes it from memory.
382
+
-`bookmark-delete-all` prompts for confirmation and deletes all loaded bookmarks.
383
+
384
+
The keymap `*keymap*` has some pre-defined mappings for most of the available commands:
385
+
386
+
```lisp
387
+
(define-key *keymap* "x" 'bookmark-set)
388
+
(define-key *keymap* "X" 'bookmark-set-no-overwrite)
0 commit comments