aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshoshin <shoshin@cicadas.surf>2022-09-13 21:18:45 -0500
committershoshin <shoshin@cicadas.surf>2022-09-13 21:18:45 -0500
commite3f369abdd7cfac6067e624699e643b166162620 (patch)
treea0bc0fdbd92091190d5055ec43fb39c2b6bf868a
parent9cf350603bc247bb53ea8a7515627bbc2a0cea68 (diff)
Add: [consult]-git-grep instead of ripgrep, and tangle
-rw-r--r--shoshimacs.el32
-rw-r--r--shoshimacs.org2
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
<f1> 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
<f1> my-reload-config)