From ff12dbe2c9eeab8a07f110c4598caad318f20463 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 6 Dec 2020 01:34:08 +0100 Subject: [PATCH] [Emacs] Make `phundrak/blog-publish' interactive --- org/config/emacs.org | 1 + 1 file changed, 1 insertion(+) diff --git a/org/config/emacs.org b/org/config/emacs.org index 8bc6e06..3b65c4e 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -1176,6 +1176,7 @@ The following is a nice little function I use in my Eshell prompt. It shortens t This function is quite a simple function made to automatically publish [[https://blog.phundrak.com][my blog]] based on Hugo. After exporting my blog using ~ox-hugo~, I simply have to call this function which will look for all files located in =~/org/blog/public= and copy them to my remote server once ~hugo~ has been executed in =~/org/blog=. #+BEGIN_SRC emacs-lisp (defun phundrak/blog-publish () + (interactive) (let* ((blog-path "~/org/blog") (public-path (concat blog-path "/public")) (target-path "/ssh:Tilo:/home/phundrak/www/phundrak.com/blog"))