From 9148fea7cfec4dd19e3e023685820156568adee7 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Sun, 22 Aug 2021 12:50:42 +0300 Subject: [PATCH] docs(*): export --- .config/guix/manifests/dev.scm | 1 + .emacs.d/init.el | 7 +++++++ Console.org | 7 +++++-- Desktop.org | 11 ++++++++--- Emacs.org | 20 ++++++++++++++++++-- Guix.org | 5 ++++- Mail.org | 6 +++++- 7 files changed, 48 insertions(+), 9 deletions(-) diff --git a/.config/guix/manifests/dev.scm b/.config/guix/manifests/dev.scm index 07cff13..fb55d51 100644 --- a/.config/guix/manifests/dev.scm +++ b/.config/guix/manifests/dev.scm @@ -1,5 +1,6 @@ (specifications->manifest '( + "go" "openjdk" "node" "git-filter-repo" diff --git a/.emacs.d/init.el b/.emacs.d/init.el index e00f449..2b20ab2 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -159,6 +159,11 @@ (setq evil-lion-right-align-key (kbd "g A")) (evil-lion-mode)) +(use-package evil-matchit + :straight t + :config + (global-evil-matchit-mode 1)) + (use-package evil-collection :straight t :after evil @@ -1741,6 +1746,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer." :straight t :hook (org-mode . org-superstar-mode)) +(setq org-export-backends '(md html latex beamer org)) + (use-package ox-hugo :straight t :after ox) diff --git a/Console.org b/Console.org index bfda9d3..a13dab2 100644 --- a/Console.org +++ b/Console.org @@ -5,8 +5,11 @@ #+PROPERTY: header-args:conf-toml :comments link #+PROPERTY: header-args:sh :tangle-mode (identity #o755) :comments link :shebang "#!/usr/bin/env sh" #+PROPERTY: header-args:bash :tangle-mode (identity #o755) :comments link :shebang "#!/usr/bin/env bash" +#+OPTIONS: broken-links:auto h:6 toc:nil -* Contents +#+TOC headlines 6 + +* Contents :noexport: :PROPERTIES: :TOC: :include all :depth 3 :END: @@ -942,7 +945,7 @@ fi #+end_src * Guix settings #+NAME: packages -#+begin_src emacs-lisp :tangle no +#+begin_src emacs-lisp :tangle no :eval never-export (my/format-guix-dependencies) #+end_src diff --git a/Desktop.org b/Desktop.org index 3975741..7e4b8f4 100644 --- a/Desktop.org +++ b/Desktop.org @@ -1,18 +1,22 @@ #+TITLE: Desktop #+TODO: TODO(t) CHECK(s) | OFF(o) -#+PROPERTY: header-args :mkdirp yes +#+PROPERTY: header-args :mkdirp yes +#+PROPERTY: header-args:emacs-lisp :eval never-export #+PROPERTY: header-args:conf-space :comments link #+PROPERTY: header-args:conf-unix :comments link #+PROPERTY: header-args:conf-windows :comments link #+PROPERTY: header-args:conf-xdefaults :comments link #+PROPERTY: header-args:sh :tangle-mode (identity #o755) :comments link :shebang "#!/usr/bin/env bash" #+PROPERTY: header-args:bash :tangle-mode (identity #o755) :comments link :shebang "#!/usr/bin/env bash" +#+OPTIONS: broken-links:auto h:6 toc:nil My general desktop environment configuration. Parts prefixed with (OFF) are not used, but kept for historic purposes. For some reason GitHub's org renderer ignores TODO status, hence such a prefix. Round brackets instead of square ones to prevent GitHub's org renderer from screwing up. -* Contents +#+TOC: headlines 6 + +* Contents :noexport: :PROPERTIES: :TOC: :include all :depth 3 :END: @@ -1345,7 +1349,7 @@ A theme, based on [[https://github.com/dracula/rofi][dracula theme]] for rofi, b table)) #+end_src -#+begin_src conf-colon :tangle ./.config/rofi/config.rasi :noweb yes +#+begin_src css :tangle ./.config/rofi/config.rasi :noweb yes /* Generated from [[file:../../Desktop.org::*Theme][Theme:1]] */ ,* { <> @@ -2118,6 +2122,7 @@ This section generates manifests for various desktop software that I'm using. | dev | git-filter-repo | | dev | node | | dev | openjdk | +| dev | go | ** Manifests #+NAME: packages #+begin_src emacs-lisp :tangle no :var category="" diff --git a/Emacs.org b/Emacs.org index ccd2382..3bdf003 100644 --- a/Emacs.org +++ b/Emacs.org @@ -1,7 +1,9 @@ #+PROPERTY: header-args :mkdirp yes #+PROPERTY: header-args:bash :tangle-mode (identity #o755) :comments link :shebang "#!/usr/bin/env bash" -#+PROPERTY: header-args:emacs-lisp :tangle ~/.emacs.d/init.el :mkdirp yes +#+PROPERTY: header-args:emacs-lisp :tangle ~/.emacs.d/init.el :mkdirp yes :eval never-export #+TODO: CHECK(s) | OFF(o) +#+TITLE: Emacs config +#+OPTIONS: broken-links:auto h:6 toc:nil #+begin_quote One day we won't hate one another, no young boy will march to war and I will clean up my Emacs config. But that day isn't today. @@ -11,7 +13,9 @@ My [[https://www.gnu.org/software/emacs/][Emacs]] configuration. As with other files in the repo, parts prefixed with (OFF) are not used but kept for historic purposes. -* Contents +#+TOC: headlines 6 + +* Contents :noexport: :PROPERTIES: :TOC: :include all :depth 4 :END: @@ -549,6 +553,14 @@ Basic evil configuration. (setq evil-lion-right-align-key (kbd "g A")) (evil-lion-mode)) #+end_src + +[[https://github.com/redguardtoo/evil-matchit][evil-matchit]] makes "%" to match things like tags. +#+begin_src emacs-lisp +(use-package evil-matchit + :straight t + :config + (global-evil-matchit-mode 1)) +#+end_src *** evil-collection [[https://github.com/emacs-evil/evil-collection][evil-collection]] is a package that provides evil bindings for a lot of different packages. One can see the whole list in the [[https://github.com/emacs-evil/evil-collection/tree/master/modes][modes]] folder. @@ -2830,6 +2842,10 @@ Categories are broad labels to group agenda items. ("." ,(list (all-the-icons-faicon "circle-o")) nil nil :ascent center)))) #+end_src ** Export +*** General settings +#+begin_src emacs-lisp +(setq org-export-backends '(md html latex beamer org)) +#+end_src *** Hugo #+begin_src emacs-lisp (use-package ox-hugo diff --git a/Guix.org b/Guix.org index 4fdbfb3..accfa1b 100644 --- a/Guix.org +++ b/Guix.org @@ -1,8 +1,10 @@ #+TITLE: Guix -#+PROPERTY: header-args :mkdirp yes +#+PROPERTY: header-args :mkdirp yes +#+PROPERTY: header-args:emacs-lisp :eval never-export #+PROPERTY: header-args:bash :tangle-mode (identity #o755) :comments link :shebang "#!/usr/bin/env bash" #+PROPERTY: header-args:sh :tangle-mode (identity #o755) :comments link :shebang "#!/bin/sh" #+PROPERTY: header-args:scheme :comments link +#+OPTIONS: broken-links:auto h:6 toc:nil [[https://guix.gnu.org/][GNU Guix]] is (1) a transactional package manager and (2) a GNU/Linux distribution. @@ -14,6 +16,7 @@ References: - [[https://gitlab.com/pjotrp/guix-notes][Pjotr Prins' Guix notes]] - [[https://www.youtube.com/watch?v=iBaqOK75cho&list=PLEoMzSkcN8oNxnj7jm5V2ZcGc52002pQU][Davil Wilson's YouTube series]] +#+TOC: headlines 6 * Contents :PROPERTIES: diff --git a/Mail.org b/Mail.org index daa0fa8..12df24d 100644 --- a/Mail.org +++ b/Mail.org @@ -3,9 +3,11 @@ :END: #+TITLE: Mail #+PROPERTY: header-args :mkdirp yes +#+PROPERTY: header-args:emacs-lisp :eval never-export #+PROPERTY: header-args:conf-unix :comments link #+PROPERTY: header-args:conf-space :comments link #+PROPERTY: header-args:bash :tangle-mode (identity #o755) :comments link :shebang "#!/usr/bin/env bash" +#+OPTIONS: broken-links:auto h:6 toc:nil My email configration. Currently uses [[https://github.com/gauteh/lieer][lieer]] to fetch emails from Gmail, [[http://davmail.sourceforge.net/][davmail]] & [[http://www.offlineimap.org/][offlineimap]] to fetch emails from MS Exchange, [[https://notmuchmail.org/][notmuch]] to index, [[https://marlam.de/msmtp/][msmtp]] to send emails. Also using notmuch frontend from Emacs. @@ -16,7 +18,9 @@ But I also have an Exchange account, with which I communicate via IMAP/SMTP adap References: - [[https://sqrtminusone.xyz/posts/2021-02-27-gmail/][My post]] about email configuration. I wrote it some time ago, but the general idea remains. -* Contents +#+TOC: headlines 6 + +* Contents :noexport: :PROPERTIES: :TOC: :include all :END: