diff options
Diffstat (limited to 'emacs/functions.el')
| -rw-r--r-- | emacs/functions.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs/functions.el b/emacs/functions.el index e81639a..fc8431f 100644 --- a/emacs/functions.el +++ b/emacs/functions.el @@ -9,6 +9,17 @@ (expand-file-name name (concat (xdg-data-home) "/emacs"))) +;; Search Helpers + +(defun my/isearch-region (&rest _args) + "Pull the contents of the region into the search string if it +is active." + (when (use-region-p) + (deactivate-mark) + (isearch-yank-string (buffer-substring-no-properties + (region-beginning) (region-end))))) + + ;; Theme Functions (defun my/macos-dark-p () |
