X-Git-Url: https://git.korewanetadesu.com/?p=pelican-mode.git;a=blobdiff_plain;f=pelican-mode.el;h=df0503f3a785931bb4f02a0b67c55585e8c60ca1;hp=46712544b0bdb0f4d7eccc89be9dbce60c04c847;hb=993581b3d5ab84df353d312cac09b803c782795b;hpb=cbf0b460910f42175be6e739fd28174fa1347e7f diff --git a/pelican-mode.el b/pelican-mode.el index 4671254..df0503f 100644 --- a/pelican-mode.el +++ b/pelican-mode.el @@ -179,12 +179,9 @@ (defun pelican-make (target) "Execute TARGET in a Makefile at the root of the site." (interactive "sMake Pelican target: ") - (if-let ((default-directory (pelican-find-root))) - (let ((output (get-buffer-create "*Pelican Output*"))) - (display-buffer output) - (pop-to-buffer output) - (compilation-mode) - (start-process "Pelican Makefile" output "make" target)) + (if-let (default-directory (pelican-find-root)) + (compilation-start (format "make %s" target) + nil (lambda (_) "*pelican*")) (message "This doesn't look like a Pelican site."))) (defun pelican-make-html () @@ -216,7 +213,7 @@ "Toggle Pelican mode. Interactively with no argument, this command toggles the mode. -to show buffer size and position in mode-line." +for editing Pelican site files." :init-value nil :lighter " Pelican" :keymap pelican-keymap