From 87de23f359232ff69ff503d2ad2d488eb66c363f Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sat, 13 Feb 2021 20:13:19 -0600 Subject: [PATCH] Minor edits. --- .config/fish/config.fish | 14 ++++++++++++++ .config/nitrogen/bg-saved.cfg | 10 +++++----- .config/nitrogen/nitrogen.cfg | 2 +- .doom.d/init.el | 2 +- .doom.d/packages.el | 2 ++ 5 files changed, 23 insertions(+), 7 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 421b581..cf9f14a 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -171,6 +171,20 @@ end function take --argument number head -$number end + +# Function for org-agenda +function org-search -d "send a search string to org-mode" + set -l output (/usr/bin/emacsclient -a "" -e "(message \"%s\" (mapconcat #'substring-no-properties \ + (mapcar #'org-link-display-format \ + (org-ql-query \ + :select #'org-get-heading \ + :from (org-agenda-files) \ + :where (org-ql--query-string-to-sexp \"$argv\"))) \ + \" + \"))") + printf $output +end + ### END OF FUNCTIONS ### diff --git a/.config/nitrogen/bg-saved.cfg b/.config/nitrogen/bg-saved.cfg index d55cc9a..41a089f 100644 --- a/.config/nitrogen/bg-saved.cfg +++ b/.config/nitrogen/bg-saved.cfg @@ -1,14 +1,14 @@ -[xin_0] -file=/home/dt/wallpapers/0277.jpg +[xin_2] +file=/home/dt/wallpapers/0166.jpg mode=0 bgcolor=#000000 [xin_1] -file=/home/dt/wallpapers/0277.jpg +file=/home/dt/wallpapers/0166.jpg mode=0 bgcolor=#000000 -[xin_2] -file=/home/dt/wallpapers/0277.jpg +[xin_0] +file=/home/dt/wallpapers/0166.jpg mode=0 bgcolor=#000000 diff --git a/.config/nitrogen/nitrogen.cfg b/.config/nitrogen/nitrogen.cfg index 119ed4b..8af6a8f 100644 --- a/.config/nitrogen/nitrogen.cfg +++ b/.config/nitrogen/nitrogen.cfg @@ -1,5 +1,5 @@ [geometry] -posx=16 +posx=1936 posy=40 sizex=1884 sizey=1020 diff --git a/.doom.d/init.el b/.doom.d/init.el index fc3a33d..1e6632c 100644 --- a/.doom.d/init.el +++ b/.doom.d/init.el @@ -146,7 +146,7 @@ ;;nim ; python + lisp at the speed of c nix ; I hereby declare "nix geht mehr!" ;;ocaml ; an objective camel - (org +org-bullets) ; organize your plain life in plain text + (org +org-bullets +org-ql) ; organize your plain life in plain text php ; perl's insecure younger brother ;;plantuml ; diagrams for confusing people more ;;purescript ; javascript, but functional diff --git a/.doom.d/packages.el b/.doom.d/packages.el index 9cec4b1..1e3ebd1 100644 --- a/.doom.d/packages.el +++ b/.doom.d/packages.el @@ -53,12 +53,14 @@ (package! dired-open) (package! dmenu) (package! elfeed) +(package! elpher) (package! emms) (package! emojify) (package! evil-tutor) (package! ivy-posframe) (package! mastodon) (package! org-bullets) +(package! org-ql) (package! peep-dired) (package! rainbow-mode) (package! resize-window)