From 8600d2e8d233038b9bbc2e60d4d585e18e75a806 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 6 May 2017 13:48:09 +0200 Subject: [PATCH] ui/doom: remove TODO + update docstring for +doom:scratch-buffer --- modules/ui/doom/autoload/evil.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/ui/doom/autoload/evil.el b/modules/ui/doom/autoload/evil.el index 4b8a5e128..1cf43e5f0 100644 --- a/modules/ui/doom/autoload/evil.el +++ b/modules/ui/doom/autoload/evil.el @@ -2,16 +2,15 @@ ;;;###autoload (autoload '+doom:scratch-buffer "ui/doom/autoload/evil" nil t) (evil-define-operator +doom:scratch-buffer (&optional beg end bang) - "Send a region to and pop up the scratch buffer. If BANG, don't use a popup, -use the current window." + "Opens the scratch buffer in a popup window and, optionally, send the selected +region to it. If BANG, use current window instead of a popup." :move-point nil :type inclusive - ;; TODO Test me (interactive "") (let ((text (when (and (evil-visual-state-p) beg end) (buffer-substring beg end))) (mode major-mode) (old-project (doom-project-root)) - (new-buf (get-buffer-create "*doom:scratch*"))) + (new-buf (get-buffer-create "*doom:scratch*"))) (if bang (switch-to-buffer new-buf) (doom-popup-buffer new-buf))