Add command-binding tables to the bookmark and register sections
This commit is contained in:
parent
c3b30bee89
commit
dfcc3ccb5f
71
README.org
71
README.org
@ -819,12 +819,11 @@ and [[lst:3rd-window-management]] implement a selection of his recommendations.
|
||||
:CUSTOM_ID: sec:bookmarks
|
||||
:END:
|
||||
|
||||
Listing [[lst:setup-bookmark][bookmark setup]] preserves bookmark history in [[./var/bookmark-default.el][bookmark-default.el]]. To
|
||||
access the bookmark history, type:
|
||||
- {{{kbd(C-x r b)}}} src_emacs-lisp[:results silent]{(call-interactively
|
||||
'consult-bookmark)} to jump to a saved bookmark.
|
||||
- {{{kbd(A-x list-bookmarks)}}} src_emacs-lisp[:results
|
||||
silent]{(call-interactively 'list-bookmarks)} to edit or use the history.
|
||||
Listing [[lst:setup-bookmark][bookmark setup]] preserves bookmark history in [[./var/bookmark-default.el][bookmark-default.el]]. Table
|
||||
[[tab:bookmark-commands-and-bindings]] lists all =bookmark= commands with working
|
||||
key bindings. Not all key bindings in src_emacs-lisp{(describe-variable
|
||||
'bookmark-map)} are operational for different reasons.
|
||||
|
||||
BUG: The virtual buffers of the ~consult-buffer~ command do not seem to work.
|
||||
Therefore, ~consult-buffer~ is no means to access the bookmark history (contrary
|
||||
to claims in [[info:consult#Top][consult (info)]]).
|
||||
@ -838,12 +837,39 @@ to claims in [[info:consult#Top][consult (info)]]).
|
||||
(setf bookmark-exit-hook 'bookmark-unload-function))
|
||||
#+end_src
|
||||
|
||||
[[info:emacs#Registers][Registers (info)]]
|
||||
#+attr_latex: :booktabs yes :float table
|
||||
#+caption[Bookmark commands with key bindings]:
|
||||
#+caption: Bookmark commands with key bindings.
|
||||
#+name: tab:bookmark-commands-and-bindings
|
||||
|------------------------------+--------------------|
|
||||
| command | key binding |
|
||||
|------------------------------+--------------------|
|
||||
| *bookmark-delete* | |
|
||||
| *bookmark-delete-all* | |
|
||||
| *bookmark-insert* | {{{kbd(C-x r i)}}} |
|
||||
| *bookmark-insert-location* | |
|
||||
| *bookmark-jump* | {{{kbd(C-x r j)}}} |
|
||||
| *bookmark-jump-other-frame* | |
|
||||
| *bookmark-jump-other-window* | |
|
||||
| *bookmark-load* | |
|
||||
| *bookmark-rename* | |
|
||||
| *bookmark-save* | |
|
||||
| *bookmark-set* | {{{kbd(C-x r m)}}} |
|
||||
| *bookmark-set-no-overwrite* | {{{kbd(C-x r M)}}} |
|
||||
| *bookmark-write* | |
|
||||
| *consult-bookmark* | {{{kbd(C-x r b)}}} |
|
||||
| *list-bookmarks* | |
|
||||
|------------------------------+--------------------|
|
||||
|
||||
* [[info:emacs#Registers][Registers (info)]]
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: sec:registers
|
||||
:END:
|
||||
|
||||
Listing [[lst:setup-register][setup register usage]] sets up relevant register options.
|
||||
Listing [[lst:setup-register][setup register usage]] sets up relevant register options. Table
|
||||
[[tab:register-commands-and-bindings]] lists all =bookmark= commands with working
|
||||
key bindings. The =desktop= library allows to preserve the =register= history
|
||||
between Emacs sessions.
|
||||
|
||||
#+caption[Setup register usage]:
|
||||
#+caption: Setup register usage.
|
||||
@ -867,9 +893,36 @@ text."
|
||||
(string :tag "Use string" :value "")))
|
||||
|
||||
(setopt register-separator "\n"
|
||||
register-use-preview 'never))
|
||||
register-use-preview t)
|
||||
|
||||
;; https://emacs.stackexchange.com/a/52290
|
||||
(defun delete-all-registers ()
|
||||
"Delete all registers."
|
||||
(interactive)
|
||||
(setq register-alist nil)))
|
||||
#+end_src
|
||||
|
||||
#+attr_latex: :booktabs yes :float table
|
||||
#+caption[Register commands with key bindings]:
|
||||
#+caption: Register commands with key bindings.
|
||||
#+name: tab:register-commands-and-bindings
|
||||
|------------------------------------+------------------------|
|
||||
| command | key binding |
|
||||
|------------------------------------+------------------------|
|
||||
| *append-to-register* | |
|
||||
| *copy-rectangle-to-register* | {{{kbd(C-x r r)}}} |
|
||||
| *copy-to-register* | {{{kbd(C-x r s)}}} |
|
||||
| *frameset-to-register* | {{{kbd(C-x r f)}}} |
|
||||
| *increment-register* | {{{kbd(C-x r +)}}} |
|
||||
| *insert-register* | {{{kbd(C-x r i)}}} |
|
||||
| *jump-to-register* | {{{kbd(C-x r j)}}} |
|
||||
| *kmacro-to-register* | {{{kbd(C-x C-k x)}}} |
|
||||
| *number-to-register* | {{{kbd(C-x r n)}}} |
|
||||
| *point-to-register* | {{{kbd(C-x r <SPC>)}}} |
|
||||
| *prepend-to-register* | |
|
||||
| *set-register* | |
|
||||
| *window-configuration-to-register* | {{{kbd(C-x r w)}}} |
|
||||
|------------------------------------+------------------------|
|
||||
|
||||
* [[info:emacs#Dired][Dired: directory editor as file manager (info)]]
|
||||
:PROPERTIES:
|
||||
|
Loading…
Reference in New Issue
Block a user