From 08e3fa7e1764e4b8cfc74bd4b79a7e44d5901fbb Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Tue, 24 Aug 2021 15:37:45 -0500 Subject: [PATCH] Adding org-publish to Doom Emacs. --- .config/doom/config.el | 14 +++++++++----- .config/doom/config.org | 15 +++++++++------ 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index 38782d0..8945ffd 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -435,12 +435,15 @@ (use-package ox-gemini) (use-package ox-publish) +(setq org-publish-use-timestamps-flag nil) +(setq org-export-with-broken-links t) (setq org-publish-project-alist - '(("org-notes" - :base-directory "~/Org/website" + '(("distro.tube" + :base-directory "~/gitlab-repos/distro.tube/" :base-extension "org" - :publishing-directory "~/public_html/" + :publishing-directory "~/gitlab-repos/distro.tube/html/" :recursive t + :exclude "org-html-themes/.*" :publishing-function org-html-publish-to-html :headline-levels 4 ; Just the default for this project. :auto-preamble t) @@ -449,6 +452,7 @@ :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/public_html/" :recursive t + :exclude ".*/org-html-themes/.*" :publishing-function org-publish-attachment) )) @@ -470,8 +474,8 @@ (map! :leader (:prefix ("\\" . "ssh") - :desc "Ssh into distrotube.com" "\\ d" #'(lambda () (interactive) (find-file "/scp:derek@distrotube.com")) - :desc "Ssh into my nextcloud" "\\ n" #'(lambda () (interactive) (find-file "/scp:derek@distrotube.net")))) + :desc "Ssh into distrotube.com" "\ d" #'(lambda () (interactive) (find-file "/scp:derek@distrotube.com")) + :desc "Ssh into my nextcloud" "\ n" #'(lambda () (interactive) (find-file "/scp:derek@distrotube.net")))) (setq shell-file-name "/bin/fish" vterm-max-scrollback 5000) diff --git a/.config/doom/config.org b/.config/doom/config.org index 0c5785c..a8a4992 100644 --- a/.config/doom/config.org +++ b/.config/doom/config.org @@ -718,13 +718,15 @@ We need ox-man for "Org eXporting" to manpage format. Org-publish #+begin_src emacs-lisp - +(setq org-publish-use-timestamps-flag nil) +(setq org-export-with-broken-links t) (setq org-publish-project-alist - '(("org-notes" - :base-directory "~/Org/website" + '(("distro.tube" + :base-directory "~/gitlab-repos/distro.tube/" :base-extension "org" - :publishing-directory "~/public_html/" + :publishing-directory "~/gitlab-repos/distro.tube/html/" :recursive t + :exclude "org-html-themes/.*" :publishing-function org-html-publish-to-html :headline-levels 4 ; Just the default for this project. :auto-preamble t) @@ -733,6 +735,7 @@ Org-publish :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/public_html/" :recursive t + :exclude ".*/org-html-themes/.*" :publishing-function org-publish-attachment) )) @@ -789,8 +792,8 @@ Keybindings for ssh'ing into remote machines. By default, Doom Emacs does not u #+BEGIN_SRC emacs-lisp (map! :leader (:prefix ("\\" . "ssh") - :desc "Ssh into distrotube.com" "\\ d" #'(lambda () (interactive) (find-file "/scp:derek@distrotube.com")) - :desc "Ssh into my nextcloud" "\\ n" #'(lambda () (interactive) (find-file "/scp:derek@distrotube.net")))) + :desc "Ssh into distrotube.com" "\ d" #'(lambda () (interactive) (find-file "/scp:derek@distrotube.com")) + :desc "Ssh into my nextcloud" "\ n" #'(lambda () (interactive) (find-file "/scp:derek@distrotube.net")))) #+END_SRC * SHELLS