General revision of docstrings

This commit is contained in:
Henrik Lissner 2018-05-11 20:22:05 +02:00
parent 7630394210
commit 57f383ef76
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 23 additions and 16 deletions

View file

@ -12,6 +12,7 @@
(doom/open-scratch-buffer bang))
(evil-define-command doom:pwd (bang)
"Display the current working directory. If BANG, copy it to your clipboard."
(interactive "<!>")
(if (not bang)
(pwd)
@ -19,6 +20,8 @@
(message "Copied to clipboard")))
(evil-define-command doom:make (command &optional from-pwd)
"Run the current project Makefile's COMMAND. If FROM-PWD (bang), run the make
command from the current directory instead of the project root."
(interactive "<sh><!>")
(let ((default-directory (if from-pwd default-directory (doom-project-root t)))
(command (and command (evil-ex-replace-special-filenames command))))