diff --git a/init.org b/init.org index b843982..d8b8eee 100644 --- a/init.org +++ b/init.org @@ -730,85 +730,6 @@ See the excellent documentation on [[https://github.com/minad/consult][Minad's c #+RESULTS: : [nil 26434 3705 536018 nil elpaca-process-queues nil nil 266000 nil] -*** TODO Add consult-omni - -Consult omni allows Alfred/Spotlight like universal searching among -many sources : filesystem, web, wikipedia, LLMs, ... - -This requires quite a bit of setup and experimentation - -for more details see [[https://github.com/armindarvish/consult-omni][the consult-omni github]] . There is a long in -depth [[https://www.youtube.com/watch?v=wNH2E7iT__c][youtube video]] demoing and going deep in the setup. - - -#+BEGIN_SRC emacs-lisp - (use-package consult-omni - :ensure (consult-omni :type git :host github :repo "armindarvish/consult-omni" :branch "main" :files (:defaults "sources/*.el")) - :after consult - :custom - ;; General settings that apply to all sources - (consult-omni-show-preview t) ;;; show previews - (consult-omni-preview-key "C-o") ;;; set the preview key to C-o - :config - ;; Load Sources Core code - (require 'consult-omni-sources) - ;; Load Embark Actions - (require 'consult-omni-embark) - - ;; Either load all source modules or a selected list - - ;;; Select a list of modules you want to aload, otherwise all sources all laoded - ; (setq consult-omni-sources-modules-to-load (list 'consult-omni-wkipedia 'consult-omni-notes)) - (consult-omni-sources-load-modules) - ;;; set multiple sources for consult-omni-multi command. Change these lists as needed for different interactive commands. Keep in mind that each source has to be a key in `consult-omni-sources-alist'. - (setq consult-omni-multi-sources '("calc" - ;; "File" - ;; "Buffer" - ;; "Bookmark" - "Apps" - ;; "gptel" - "Brave" - "Dictionary" - ;; "Google" - "Wikipedia" - "elfeed" - ;; "mu4e" - ;; "buffers text search" - "Notes Search" - "Org Agenda" - "GitHub" - ;; "YouTube" - "Invidious")) - -;; Per source customization - - ;;; Set API KEYs. It is recommended to use a function that returns the string for better security. - (setq consult-omni-google-customsearch-key "YOUR-GOOGLE-API-KEY-OR-FUNCTION") - (setq consult-omni-google-customsearch-cx "YOUR-GOOGLE-CX-NUMBER-OR-FUNCTION") - (setq consult-omni-brave-api-key "YOUR-BRAVE-API-KEY-OR-FUNCTION") - (setq consult-omni-stackexchange-api-key "YOUR-STACKEXCHANGE-API-KEY-OR-FUNCTION") - (setq consult-omni-pubmed-api-key "YOUR-PUBMED-API-KEY-OR-FUNCTION") - (setq consult-omni-openai-api-key "YOUR-OPENAI-API-KEY-OR-FUNCTION") - -;;; Pick you favorite autosuggest command. - (setq consult-omni-default-autosuggest-command #'consult-omni-dynamic-brave-autosuggest) ;;or any other autosuggest source you define - - ;;; Set your shorthand favorite interactive command - (setq consult-omni-default-interactive-command #'consult-omni-multi)) - -#+END_SRC - -#+RESULTS: -: [nil 26745 28425 788184 nil elpaca-process-queues nil nil 528000 nil] - - - - -**** TODO Create Brave Search API key - -to enable consult omni brave searches I need a brave API key. [[https://api-dashboard.search.brave.com/register][Here]] is -the account registration page.yuy i u uuu u u iu u u - ** Frequently used File/Project Operations #+BEGIN_SRC emacs-lisp @@ -1974,7 +1895,7 @@ the moment. #+BEGIN_SRC emacs-lisp (use-package org :mode (("\\.org\\'" . org-mode)) - :ensure org-plus-contrib + :ensure nil :custom (org-return-follows-link t) (org-mouse-1-follows-link t) @@ -2003,7 +1924,6 @@ the moment. ("~/org/personal/bijen.org" . (:level . 1)) ("~/org/personal/fitness.org" . (:level . 1)) )) - (org-babel-load-languages ') :config (message "Configuring org mode") @@ -2147,7 +2067,6 @@ return f"Foo {bar}" #+END_SRC #+RESULTS: -: Foo bar ***** TODO Example Latex @@ -2905,13 +2824,27 @@ the org tree and in the customer JIRA. Create agenda views for specific contexts #+BEGIN_SRC emacs-lisp - (add-to-list 'org-agenda-custom-commands '("b" "Busy Bees" ((tags-todo "+bees")))) + (add-to-list 'org-agenda-custom-commands '("fb" "Busy Bees" ((tags-todo "+bees")))) + (add-to-list 'org-agenda-custom-commands '("fm" "Melexis" ((tags-todo "+mlx")))) + (add-to-list 'org-agenda-custom-commands '("fg" "Geel" ((tags-todo "+geel")))) + (add-to-list 'org-agenda-custom-commands '("fh" "Home" ((tags-todo "+home")))) + (add-to-list 'org-agenda-custom-commands '("fr" "Rillaar" ((tags-todo "+rillaar")))) + (add-to-list 'org-agenda-custom-commands '("fe" "Emacs" ((alltodo ".*" ((org-agenda-files '("~/org/snamellit/emacs.org"))))))) #+END_SRC #+RESULTS: -| b | Busy Bees | ((tags-todo +bees)) | -| G | Customer GTD | ((alltodo .* ((org-agenda-files '(~/org/customer/ ~/.org-jira/)) (org-agenda-overriding-header Customer GTD)))) | -| w | Weekly Review | ((agenda ((org-agenda-overriding-header Completed Tasks) (org-agenda-skip-function (org-agenda-skip-entry-if 'nottodo 'done)) (org-agenda-span 'week))) (agenda ((org-agenda-overriding-header Unfinished Scheduled Tasks) (org-agenda-skip-function (org-agenda-skip-entry-if 'todo 'done)) (org-agenda-span 'week)))) | +| fr | Rillaar | ((tags-todo +rillaar)) | +| fh | Home | ((tags-todo +home)) | +| fg | Geel | ((tags-todo +geel)) | +| fr | Melexis | ((tags-todo +rillaar)) | +| fh | Melexis | ((tags-todo +home)) | +| fg | Melexis | ((tags-todo +geel)) | +| fm | Melexis | ((tags-todo +mlx)) | +| fb | Busy Bees | ((tags-todo +bees)) | +| m | Melexis | ((tags-todo +mlx)) | +| b | Busy Bees | ((tags-todo +bees)) | +| G | Customer GTD | ((alltodo .* ((org-agenda-files '(~/org/customer/ ~/.org-jira/)) (org-agenda-overriding-header Customer GTD)))) | +| w | Weekly Review | ((agenda ((org-agenda-overriding-header Completed Tasks) (org-agenda-skip-function (org-agenda-skip-entry-if 'nottodo 'done)) (org-agenda-span 'week))) (agenda ((org-agenda-overriding-header Unfinished Scheduled Tasks) (org-agenda-skip-function (org-agenda-skip-entry-if 'todo 'done)) (org-agenda-span 'week)))) | ** Denote