diff options
author | Preston Pan <preston@nullring.xyz> | 2024-01-25 16:46:22 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2024-01-25 16:46:22 -0800 |
commit | 9d15d37bed3f2d96017ffa373b0d52df26f7903a (patch) | |
tree | 187f37027dc21e736396f6bb19b990b5d3a64bc3 /config | |
parent | a7da57c0736bec58d1fc4ec99d211099c31bb45f (diff) |
add code block in website
Diffstat (limited to 'config')
-rw-r--r-- | config/doom.org | 12 | ||||
-rw-r--r-- | config/index.org | 3 | ||||
-rw-r--r-- | config/qtile.org | 2 |
3 files changed, 12 insertions, 5 deletions
diff --git a/config/doom.org b/config/doom.org index 5e77b70..1663afc 100644 --- a/config/doom.org +++ b/config/doom.org @@ -18,6 +18,7 @@ Below is the old documentation. (setq save-interprogram-paste-before-kill t) (setq yank-pop-change-selection t) (setq org-directory "~/org/") +(setq warning-minimum-level :emergency) #+end_src - `load!' for loading external *.el files relative to this one - `add-load-path!' for adding directories to the `load-path', relative to @@ -137,7 +138,7 @@ I'm experimenting with many themes right now. One of these themes is the city-li is the catppuccin theme. #+begin_src emacs-lisp :tangle yes ;; (setq doom-theme 'doom-ayu-light) -(setq doom-theme 'doom-miramare) +(setq doom-theme 'doom-gruvbox) ;; (setq catppuccin-flavor 'mocha) ;; (load-theme 'catppuccin) #+end_src @@ -288,7 +289,6 @@ And then we add the headers needed to export the journal automatically: (`yearly "#+TITLE: Yearly Journal\n#+STARTUP: folded")))) (setq org-journal-file-header 'org-journal-file-header-func) -(setq org-export-with-section-numbers nil) (setq org-journal-file-format "%Y%m%d.org") #+end_src To add everything to the agenda search path, we toggle: @@ -303,6 +303,7 @@ I don't use this anymore, but it's good to have. *** Roam This is the configuration for my mindmap. #+begin_src emacs-lisp :tangle yes +(setq org-roam-graph-viewer "qutebrowser") (setq org-roam-directory (file-truename "~/org/website/mindmap")) (setq org-roam-capture-templates '(("d" "default" plain "%?" :target (file+head "${title}.org" @@ -321,7 +322,8 @@ In order to publish my website, we need to configure emacs to publish it somewhe :recursive t :publishing-function org-html-publish-to-html :headline-levels 4 - :auto-preamble t) + :html-preamble t + :html-preamble-format (("en" "<p class=\"preamble\"><a href=\"/index.html\">home</a> | <a href=\"./index.html\">section main page</a></p><hr>"))) ("website-static" :base-directory "~/org/website" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|ico" @@ -329,7 +331,9 @@ In order to publish my website, we need to configure emacs to publish it somewhe :recursive t :publishing-function org-publish-attachment) ("website" :auto-sitemap t :components ("website-org" "website-static")))) +;; (setq org-export-html-postamble-format '(("en" "<p class=\"preamble\"><a href=\"../index.html\">previous page</a> | <a href=\"/index.html\">home</a></p>"))) (setq org-html-postamble "Copyright (c) 2024 Preston Pan") +(setq org-export-with-section-numbers nil) #+end_src *** Contacts Now we configure org-contacts, which allows me to store contacts in an org mode file: @@ -481,7 +485,7 @@ This installs all the doom modules that we are going to be configuring: ;;helm ; the *other* search engine for love and life ;;ido ; the other *other* search engine... (ivy +icons +fuzzy) - vertico + ;; vertico :ui ;;deft ; notational velocity for Emacs diff --git a/config/index.org b/config/index.org index c4dbb12..dae9957 100644 --- a/config/index.org +++ b/config/index.org @@ -8,6 +8,7 @@ They're configurations for extremely obscure programs I use. Yeah, I know, I'm somewhat of a hipster myself. ** Configurations Here is a list of my configurations for various programs: +@@html: <div class="links-page">@@ #+begin_src shell :results output raw :exports both for f in *; do @@ -25,3 +26,5 @@ done - [[file:kmonad.org][kmonad.org]] - [[file:qtile.org][qtile.org]] - [[file:qutebrowser.org][qutebrowser.org]] + +@@html: </div>@@ diff --git a/config/qtile.org b/config/qtile.org index 537bab5..6860043 100644 --- a/config/qtile.org +++ b/config/qtile.org @@ -149,7 +149,7 @@ keys.extend([ Key([mod], "g", lazy.spawn("gimp"), desc="Run GIMP"), Key([mod], "t", lazy.spawn("torbrowser-launcher"), desc="Run Tor Browser"), Key([mod], "i", lazy.spawn("emacsclient --eval \"(emacs-everywhere)\""), desc="Emacs Everywhere!"), - Key([mod], "d", lazy.spawn("dmenu_run"), desc="dmenu"), + Key([mod], "d", lazy.spawn("rofi -show run"), desc="rofi command launcher"), ]) #+end_src *** XF86 |