summaryrefslogtreecommitdiff
path: root/emacs/functions.el
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2023-04-23 13:29:31 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2023-04-23 13:29:31 +0100
commitfa31c0fa45e2540be5ac18324db42a06a8cb6ece (patch)
tree675a65e592b7c59efc12634c0261ea69695e8351 /emacs/functions.el
parent4ce77a1309b6cd4e967fed623760715914d8b4cc (diff)
emacs: Switch to Vertico, Consult, and Marginalia
Diffstat (limited to 'emacs/functions.el')
-rw-r--r--emacs/functions.el12
1 files changed, 1 insertions, 11 deletions
diff --git a/emacs/functions.el b/emacs/functions.el
index d23e412..fcf8b66 100644
--- a/emacs/functions.el
+++ b/emacs/functions.el
@@ -19,17 +19,6 @@ is active."
(isearch-yank-string (buffer-substring-no-properties
(region-beginning) (region-end)))))
-(defun my/swiper (&optional swiper-all)
- "Call ‘swiper’ (‘swiper-all’ when prefixed) with the contents
-of the region if it is active."
- (interactive "P")
- (if (use-region-p)
- (let ((initial-input (buffer-substring-no-properties
- (region-beginning) (region-end))))
- (deactivate-mark)
- (if swiper-all (swiper-all initial-input) (swiper initial-input)))
- (if swiper-all (swiper-all) (swiper))))
-
;; Theme Functions
@@ -92,6 +81,7 @@ enabled."
(defun my/eglot-organize-imports ()
"Interactively call ‘eglot-code-action-organize-imports’."
+ (interactive)
(call-interactively #'eglot-code-action-organize-imports))
(defmacro my/with-add-hook (hook &rest body)