From a3fa456e28a8fc9b0720e230039083c3f8e3f7b8 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Wed, 14 Jun 2023 16:30:24 -0700 Subject: add content to journal and mindmap --- config/doom.org | 199 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- config/index.org | 2 +- config/qtile.org | 4 ++ 3 files changed, 201 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/doom.org b/config/doom.org index b3fce4b..306b4ae 100644 --- a/config/doom.org +++ b/config/doom.org @@ -4,7 +4,8 @@ #+description: My doom emacs configuration #+html_head: -* Configuration +* config.el Configuration +This is a doom emacs configuration. If you are not using doom emacs, do not use this document. ** Basic Information My name, and the org mode directory on my computer, as well as basic editor configuration options. Below is the old documentation. @@ -98,7 +99,7 @@ And then we add the headers needed to export the journal automatically: "Custom function to create journal header." (concat (pcase org-journal-file-type - (`daily "#+TITLE: Daily Journal\n#+STARTUP: showeverything\n#+DESCRIPTION: My daily journal entry\n#+AUTHOR: Preston Pan\n#+HTML_HEAD: \n#+html_head: \n#+html_head: ") + (`daily "#+TITLE: Daily Journal\n#+STARTUP: showeverything\n#+DESCRIPTION: My daily journal entry\n#+AUTHOR: Preston Pan\n#+HTML_HEAD: \n#+html_head: \n#+html_head: \n#+options: broken-links:t") (`weekly "#+TITLE: Weekly Journal\n#+STARTUP: folded") (`monthly "#+TITLE: Monthly Journal\n#+STARTUP: folded") (`yearly "#+TITLE: Yearly Journal\n#+STARTUP: folded")))) @@ -115,7 +116,7 @@ And then we add the headers needed to export the journal automatically: (setq org-roam-directory (file-truename "~/org/website/mindmap")) (setq org-roam-capture-templates '(("d" "default" plain "%?" :target (file+head "${title}.org" - "#+title: ${title}\n#+author: Preston Pan\n#+html_head: \n#+html_head: \n#+html_head: ") + "#+title: ${title}\n#+author: Preston Pan\n#+html_head: \n#+html_head: \n#+html_head: \n#+options: broken-links:t") :unnarrowed t))) #+end_src *** Publishing @@ -172,3 +173,195 @@ loopbacks in gpg-agent.conf. :init (setq epa-pinentry-mode `loopback) (pinentry-start)) #+end_src +* packages.el Configuration +These are some external packages that I use that are not provided by doom modules. +#+begin_src emacs-lisp :tangle packages.el +(package! pinentry) +(package! kbd-mode + :recipe (:host github + :repo "kmonad/kbd-mode")) +(package! nasm-mode) +#+end_src + +* init.el Configuration +This installs all the doom modules that we are going to be configuring: +#+begin_src emacs-lisp :tangle init.el +(doom! :input + ;;bidi ; (tfel ot) thgir etirw uoy gnipleh + chinese + japanese + ;;layout ; auie,ctsrnm is the superior home row + + :completion + company + ;;helm ; the *other* search engine for love and life + ;;ido ; the other *other* search engine... + (ivy +icons +fuzzy) + vertico + + :ui + ;;deft ; notational velocity for Emacs + doom + doom-dashboard + doom-quit + (emoji +unicode) + hl-todo + hydra + indent-guides + (ligatures +extra +fira) + minimap + modeline + ;;nav-flash ; blink cursor line after big motions + ;;neotree ; a project drawer, like NERDTree for vim + ophints + (popup +defaults) + tabs + treemacs + unicode + (vc-gutter +pretty) + vi-tilde-fringe + window-select + workspaces + zen + + :editor + (evil +everywhere) + file-templates + fold + (format +onsave) + ;;god ; run Emacs commands without modifier keys + lispy + ;;multiple-cursors ; editing in many places at once + ;;objed ; text object editing for the innocent + parinfer + ;;rotate-text ; cycle region at point between text candidates + snippets + word-wrap + + :emacs + dired + electric + (ibuffer +icons) + undo + vc + + :term + ;;eshell ; the elisp shell that works everywhere + ;;shell ; simple shell REPL for Emacs + ;; term ; basic terminal emulator for Emacs + vterm + + :checkers + syntax + (spell +flyspell) + grammar + + :tools + ;;ansible + ;;biblio ; Writes a PhD for you (citation needed) + (debugger +lsp) + ;;direnv + ;;docker + editorconfig + ein + (eval +overlay) + gist + lookup + lsp + magit + make + pass + pdf + ;;prodigy ; FIXME managing external services & code builders + rgb + ;;taskrunner ; taskrunner for all your projects + ;;terraform ; infrastructure as code + tmux + tree-sitter + ;;upload ; map local to remote projects via ssh/ftp + + :os + (:if IS-MAC macos) + tty + + :lang + ;;agda ; types of types of types of types... + ;;beancount ; mind the GAAP + (cc +lsp) + ;;clojure ; java with a lisp + common-lisp + ;;coq ; proofs-as-programs + ;;crystal ; ruby at the speed of c + ;;csharp ; unity, .NET, and mono shenanigans + data + ;;(dart +flutter) ; paint ui and not much else + ;;dhall + ;;elixir ; erlang done right + ;;elm ; care for a cup of TEA? + emacs-lisp + ;;erlang ; an elegant language for a more civilized age + ess + ;;factor + ;;faust ; dsp, but you get to keep your soul + ;;fortran ; in FORTRAN, GOD is REAL (unless declared INTEGER) + ;;fsharp ; ML stands for Microsoft's Language + ;;fstar ; (dependent) types and (monadic) effects and Z3 + ;;gdscript ; the language you waited for + (go +lsp) + ;;(graphql +lsp) ; Give queries a REST + ;;(haskell +lsp) ; a language that's lazier than I am + ;;hy ; readability of scheme w/ speed of python + ;;idris ; a language you can depend on + (json +lsp) + ;;(java +lsp) ; the poster child for carpal tunnel syndrome + (javascript +lsp) + ;;julia ; a better, faster MATLAB + ;;kotlin ; a better, slicker Java(Script) + (latex +lsp +fold +cdlatex) + ;;lean ; for folks with too much to prove + ;;ledger ; be audit you can be + ;;lua ; one-based indices? one-based indices + (markdown +grip) + ;;nim ; python + lisp at the speed of c + nix + ;;ocaml ; an objective camel + (org +journal +jupyter +gnuplot +brain +pretty +roam2) + ;;php ; perl's insecure younger brother + ;;plantuml ; diagrams for confusing people more + ;;purescript ; javascript, but functional + (python +lsp +tree-sitter) + ;;qt ; the 'cutest' gui framework ever + ;;racket ; a DSL for DSLs + ;;raku ; the artist formerly known as perl6 + ;;rest ; Emacs as a REST client + ;;rst ; ReST in peace + ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} + (rust +lsp) + ;;scala ; java, but good + (scheme +guile) + (sh +fish +lsp) + ;;sml + ;;solidity ; do you need a blockchain? No. + ;;swift ; who asked for emoji variables? + ;;terra ; Earth and Moon in alignment for performance. + (web +lsp) + (yaml +lsp) + ;;zig ; C, but simpler + + :email + (mu4e +org) + ;;notmuch + ;;(wanderlust +gmail) + + :app + calendar + emms + everywhere ; *leave* Emacs!? You must be joking + irc ; how neckbeards socialize + (rss +org) ; emacs as an RSS reader + ;;twitter ; twitter client https://twitter.com/vnought + + :config + literate + (default +bindings +smartparens)) +#+end_src diff --git a/config/index.org b/config/index.org index 1932468..c4dbb12 100644 --- a/config/index.org +++ b/config/index.org @@ -11,7 +11,7 @@ Here is a list of my configurations for various programs: #+begin_src shell :results output raw :exports both for f in *; do - if [[ "$f" == "index.org" ]]; then + if [[ "$f" == "index.org" || "$f" == "README.org" ]]; then continue fi printf -- "- [[file:$f][$f]]\n" diff --git a/config/qtile.org b/config/qtile.org index 75f90e0..5625015 100644 --- a/config/qtile.org +++ b/config/qtile.org @@ -119,6 +119,7 @@ keys.extend([ Key([mod], "f", lazy.spawn("firefox"), desc="Run Firefox"), Key([mod], "b", lazy.spawn("blender"), desc="Run Blender"), Key([mod], "p", lazy.spawn("krita"), desc="Run Krita"), + 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!"), ]) @@ -135,6 +136,7 @@ keys.extend([ Key([], 'XF86AudioNext', lazy.spawn("mpc next")), Key([], 'XF86AudioPrev', lazy.spawn("mpc prev")), Key([], "XF86AudioPlay", lazy.spawn("mpc toggle"), desc="Play/Pause player"), + Key([], "Print", lazy.spawn("scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/img/scrot")), ]) #+end_src ** Groups @@ -180,6 +182,8 @@ layouts = [ ] #+end_src ** Bar +Now we define our bar. I only have the need to see the time, current workspace, battery percentage, +and MPD. Also, you may need to manually change your font size depending on your screen. #+begin_src python :tangle config.py widget_defaults = dict( font="FiraCode Nerd Font", -- cgit