From afdf846cdea02e5156b1849906b96d92247f0ac9 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Fri, 5 Apr 2019 10:05:14 +0200 Subject: Add documentation to lambdas created by my/make-tabless --- .emacs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.emacs b/.emacs index 42154fd..68b3f43 100644 --- a/.emacs +++ b/.emacs @@ -227,9 +227,10 @@ ;; Helper functions and miscellaneous settings. (defun my/make-tabless (f) - "Make a function which will run F with indent-tabs-mode disabled." - (lambda () (interactive) - ;; TODO: copy documentation from F + "Make a function which will run F with `indent-tabs-mode' disabled." + (lambda () + (:documentation (format "Run `%s' with `indent-tabs-mode' set to nil." f)) + (interactive) (let ((indent-tabs-mode nil)) (call-interactively f)))) -- cgit v1.2.3