Endless Parentheses

Concise ramblings on Emacs productivity.

profile for Malabarba on Stack Exchange

Inserting Documentation Quotes

Hopefully I'm not the only one who obsessively tries to abide by the high codes of good practice and writes descriptive documentation on every last defun or defcustom. If so, I can't be the only one who has grown tired of typing ` then ' inside Emacs doc strings.

(define-key emacs-lisp-mode-map "\C-cm" "`'\C-b")

The m key feels natural to me here, because I also use C-c m in LaTeX for quoting math, but you might find some other key more intuitive.

Tags: init.el, lisp, keybind, programming, emacs

comments powered by Disqus