aboutsummaryrefslogtreecommitdiff
path: root/org-publish.el
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-02-28 17:58:03 +0300
committerCem Keylan <cem@ckyln.com>2021-02-28 17:58:03 +0300
commit514f9e14932da1fa6092dae884ad2b2a6e874353 (patch)
treed96ae8f5b9338b1d6cbecc62e9651db7697854a2 /org-publish.el
parent276732323e09c712d15891905026ac91ef0811a9 (diff)
downloadwebsite-514f9e14932da1fa6092dae884ad2b2a6e874353.tar.gz
site: update
Diffstat (limited to 'org-publish.el')
-rwxr-xr-xorg-publish.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/org-publish.el b/org-publish.el
index a33713e..11d05d2 100755
--- a/org-publish.el
+++ b/org-publish.el
@@ -20,12 +20,26 @@
(unless (package-installed-p pkg)
(package-install pkg)))
+;; Taken from doom-emacs
+(defmacro c/pushnew! (place &rest values)
+ "Push VALUES sequentially into PLACE, if they aren't already present.
+This is a variadic `cl-pushnew'."
+ (let ((var (make-symbol "result")))
+ `(dolist (,var (list ,@values) (with-no-warnings ,place))
+ (cl-pushnew ,var ,place :test #'equal))))
+
(require 'cl-lib)
(require 'sh-script)
(require 'ox)
(require 'ox-publish)
(require 'ox-rss)
+;; Some Quality of Life link abbrevations.
+(c/pushnew! org-link-abbrev-alist
+ '("carbs-pkg" . "https://git.sr.ht/~carbslinux/repository/tree/master/item/%s")
+ '("srht" . "https://git.sr.ht/%s")
+ '("github" . "https://github.com/%s"))
+
(defvar carbs--src-directory (expand-file-name "src/" default-directory)
"Directory for most of the static webpage content")