From e3f369abdd7cfac6067e624699e643b166162620 Mon Sep 17 00:00:00 2001 From: shoshin Date: Tue, 13 Sep 2022 21:18:45 -0500 Subject: Add: [consult]-git-grep instead of ripgrep, and tangle --- shoshimacs.el | 32 ++++++++++++++++---------------- shoshimacs.org | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/shoshimacs.el b/shoshimacs.el index 78fff01..2763249 100644 --- a/shoshimacs.el +++ b/shoshimacs.el @@ -7,10 +7,22 @@ (setq custom-file my-custom-file) (load custom-file)) - (defun my-hostname () "Helper function to determine on which host Emacs is starting." - (string-trim (with-temp-buffer (shell-command "hostname" t ) (buffer-string)))) + (string-trim (with-temp-buffer (shell-command "hostname" t) (buffer-string)))) + +(defvar *my-config* "~/projects/shoshimacs/shoshimacs.org" + "Path to my main configuration file.") + +(defun my-configuration () + "Opens my configuration file in buffer." + (interactive) + (find-file *my-config*)) + +(defun my-reload-config () + "Tangles and reloads a literate config with `org-babel-load-file'" + (interactive) + (org-babel-load-file *my-config*)) (defvar my-themes-to-install '(cyberpunk-theme dracula-theme nano-theme ef-themes) @@ -29,7 +41,7 @@ (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/"))) (package-initialize) -(package-refresh-contents) +(package-refresh-contents) ;; this will make internet requests on start up (when (and (functionp #'native-comp-available-p) (native-comp-available-p)) (setq native-comp-always-compile t @@ -60,18 +72,6 @@ (cadr pair))) (quote ,(seq-partition pairs 2))))) -(defvar *my-config* "~/projects/shoshimacs/shoshimacs.org" - "Path to my main configuration file.") - -(defun my-configuration () - (interactive) - (find-file *my-config*)) - -(defun my-reload-config () - "Tangles and reloads a literate config with `org-babel-load-file'" - (interactive) - (org-babel-load-file *my-config*)) - (with-map-defkey my-key-map "M-m" 1 delete-other-windows a apropos @@ -86,7 +86,7 @@ j describe-function k describe-variable n tab-next - s consult-ripgrep + s consult-git-grep t consult-theme w which-key-mode my-reload-config) diff --git a/shoshimacs.org b/shoshimacs.org index b2eaa23..8e685b0 100644 --- a/shoshimacs.org +++ b/shoshimacs.org @@ -302,7 +302,7 @@ bit of ergonomics essentially avoiding some parens and quotes 😂 j describe-function k describe-variable n tab-next - s consult-ripgrep + s consult-git-grep t consult-theme w which-key-mode my-reload-config) -- cgit v1.2.3