From 3c9e2e9d739f3d6c631530f625b7cc6cf0e7cc1a Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 1 Jul 2024 10:09:20 -0500 Subject: [PATCH] adding hugo and zola ox --- README.org | 19 +++++++++++++++++-- init.el | 34 +++++++++++++++++----------------- 2 files changed, 34 insertions(+), 19 deletions(-) diff --git a/README.org b/README.org index 90f8c1bf..ac97af6e 100644 --- a/README.org +++ b/README.org @@ -2106,7 +2106,9 @@ Optional BACKEND must be `re-reveal' or a backend derived from it." *** ox-zola I'm going to start a website for my own ramblings, tutorials and links. To do this I'll likely use Zola since it's built in Rust. -#+begin_src emacs-lisp :tangle no +#+begin_src emacs-lisp +(use-package ox-hugo) + (use-package ox-zola :load-path "ox-zola/" :config @@ -3688,6 +3690,16 @@ Let's make sure docker is capable of using tramp. #+end_src Still need dockerfile-mode in order to be able to edit dockerfiles. +*** Just +Let's use just-mode +#+begin_src emacs-lisp +(use-package just-mode + :mode ("\\.just\\'" . just-mode)) +#+end_src + +#+begin_src emacs-lisp +(use-package justl) +#+end_src *** Fish Fish is my preferred shell and made some scripts in it so I keep this to be able to edit those scripts. @@ -3711,7 +3723,10 @@ It's probably smart to have markdown. "C-j" 'markdown-next-visible-heading "M-j" 'markdown-move-down "C-k" 'markdown-previous-visible-heading - "M-k" 'markdown-move-up)) + "M-k" 'markdown-move-up + "C-" 'markdown-insert-list-item) + (general-def 'insert markdown-mode-map + "C-" 'markdown-insert-list-item)) #+end_src *** QML diff --git a/init.el b/init.el index 0ea36eba..ed928697 100644 --- a/init.el +++ b/init.el @@ -1611,6 +1611,14 @@ Optional BACKEND must be `re-reveal' or a backend derived from it." async subtreep visible-only body-only ext-plist)) file))) +(use-package ox-hugo) + +(use-package ox-zola + :load-path "ox-zola/" + :config + (setq org-hugo-base-dir "/home/chris/dev/cochrun.xyz" + org-hugo-section "blog")) + (use-package ellama :init (require 'llm-ollama) @@ -2697,6 +2705,11 @@ targets." (use-package docker-tramp :after docker) +(use-package just-mode + :mode ("\\.just\\'" . just-mode)) + +(use-package justl) + (use-package fish-mode :mode ("\\.fish\\'" . fish-mode)) @@ -2712,7 +2725,10 @@ targets." "C-j" 'markdown-next-visible-heading "M-j" 'markdown-move-down "C-k" 'markdown-previous-visible-heading - "M-k" 'markdown-move-up)) + "M-k" 'markdown-move-up + "C-" 'markdown-insert-list-item) + (general-def 'insert markdown-mode-map + "C-" 'markdown-insert-list-item)) (use-package qml-mode :mode ("\\.qml\\'" . qml-mode)) @@ -3935,19 +3951,3 @@ interfere with the default `bongo-playlist-buffer'." gcmh-verbose nil)) (setq warning-suppress-types '((comp))) -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(pdf-misc-print-program-args - '("-o media=Letter" "-o fitplot" "-o sides=two-sided-long-edge")) - '(pdf-misc-print-program-executable "lpr") - '(safe-local-variable-values '((rustic-rustfmt-args . "--edition 2021")))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(markdown-code-face ((t (:inherit org-block)))) - '(org-modern-tag ((t :background "#9aedfe" :foreground "#282a36"))))