Now showing

Emacs: custom functions galore!

Documentaries & Learning2020Creative Commons
Poster for Emacs: custom functions galore!

About this film

In this presentation I demonstrate a collection of functions that improve my day-to-day experience with Emacs. They are meant to modify the functionality of existing tools, such as those that are already shipped with the upstream Emacs distribution. The following code block presents the contents of the file I used in this video. Please note that the code block will not be updated . For the latest version of everything I share on this front, you should refer to my dotemacs . ;;; Scratch buffers on demand ;; Package by Ian Eure (ieure on GitHub) (use-package scratch :ensure :config (defun prot/scratch-buffer-setup () "Add contents to `scratch' buffer and name it accordingly." (let* ((mode (format "%s" major-mode)) (string (concat "Scratch buffer for: " mode "\n\n"))) (when scratch-buffer (save-excursion (insert string) (goto-char (point-min)) (comment-region (point-at-bol) (point-at-eol))) (forward-line 2)) (rename-buffer (concat "*Scratch for " mode "*") t))) :hook (scratch-create-buffer-hook . prot/scratch-buffer-setup) :bind ("C-c s" . scratch)) ;;; Maximise window + kill buffer (and close window) ;; `prot/window-single-toggle' is based on `windower' by Pierre ;; Neidhardt (ambrev…

Directors & creators

Protesilaos Stavrou

View on archive.org ↗

More from this pool

Documentaries & Learning

See all →