From 6d7b83124c415a76a9c57ad4cd85b38cc5cbbee0 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Thu, 30 Jan 2020 14:22:38 -0500 Subject: [PATCH] emacs: add documentation for defuns --- emacs/auto/-macro.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs/auto/-macro.el b/emacs/auto/-macro.el index 99c40f6..9273b21 100644 --- a/emacs/auto/-macro.el +++ b/emacs/auto/-macro.el @@ -1,13 +1,16 @@ (defun agw-touch (fname) + "Touches a file asynchronously." (interactive "FFile to touch: ") (start-process "agw-touch" nil "touch" (expand-file-name fname))) (defun agw-lisp-mode () + "Sets up lisp and other functional language major modes." (setq-local indent-tabs-mode nil) (setq-local standard-indent 2) (setq-local tab-width 2)) (defun agw-org-mode () + "Sets up `org-mode'." (variable-pitch-mode) (org-bullets-mode) (flyspell-mode) @@ -16,6 +19,7 @@ (setq-local tab-width 2)) (defun agw-dired-mode () + "Sets up `dired-mode'." (local-set-key (kbd "C-c t") #'agw-touch)) (add-hook 'org-mode-hook #'agw-org-mode)