Now showing

Emacs: mark and register basics

Documentaries & Learning2023Creative Commons
Poster for Emacs: mark and register basics

About this film

Video overview on how to use the mark and registers in Emacs to select or edit text efficiently, as well as to quickly jump to points of interest across files/buffers. I also mention bookmarks, which are functionally the same as registers. Some basic configurations: ;; Make Emacs repeat the C-u C-SPC command (`set-mark-command') by ;; following it up with another C-SPC. It is faster to type ;; C-u C-SPC, C-SPC, C-SPC, than C-u C-SPC, C-u C-SPC, C-u C-SPC... (setq set-mark-command-repeat-pop t) ;; By default, the built-in `savehist-mode' only keeps a record of ;; minibuffer histories. This is helpful as it surfaces the most ;; recently selected items to the top, allowing you to access them again ;; very quickly. With the variable `savehist-additional-variables' we ;; can make `savehist-mode' keep a record of any variable we want, so ;; that it persists between Emacs sessions. I do this to store the ;; `kill-ring' and the `register-alist'. (setq savehist-additional-variables '(register-alist kill-ring)) (savehist-mode 1) ;; I want Emacs to write the list of bookmarks to the `bookmark-file' ;; as soon as I set a new bookmark. The default behaviour of Emacs is ;; to write to the disk a…

Directors & creators

Protesilaos Stavrou

View on archive.org ↗

More from this pool

Documentaries & Learning

See all →