diff options
author | shoshin <shoshin@cicadas.surf> | 2022-09-13 21:18:45 -0500 |
---|---|---|
committer | shoshin <shoshin@cicadas.surf> | 2022-09-13 21:18:45 -0500 |
commit | e3f369abdd7cfac6067e624699e643b166162620 (patch) | |
tree | a0bc0fdbd92091190d5055ec43fb39c2b6bf868a /shoshimacs.el | |
parent | 9cf350603bc247bb53ea8a7515627bbc2a0cea68 (diff) |
Add: [consult]-git-grep instead of ripgrep, and tangle
Diffstat (limited to 'shoshimacs.el')
-rw-r--r-- | shoshimacs.el | 32 |
1 files changed, 16 insertions, 16 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) |