From d3e20df7d3a70a76fdeef0e8f1993a6eea9298c1 Mon Sep 17 00:00:00 2001 From: bth Date: Thu, 25 Dec 2025 18:58:13 -0800 Subject: [PATCH] consistent naming --- README.md | 4 ++++ elisp/um.el | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 948417f..dcbe149 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,10 @@ My config looks like this: :custom (um-root-glob ".*/writing/journal") + :bind + ("M-s t" . um-tag-grep) + ("M-r t" . um-tag-dwim) + :config (advice-add 'embark-target-file-at-point :around 'um-target-file-at-point-advice) diff --git a/elisp/um.el b/elisp/um.el index 3277bc3..8666872 100644 --- a/elisp/um.el +++ b/elisp/um.el @@ -32,8 +32,8 @@ ;; current project, falling back to a source directory. ;; `um-target-file-at-point-advice' via `embark-dwim': open file under point in all ;; known projects, falling back to a source directory. - -;; `um-grep-tag': search files with same tag +;; `um-tag-grep': search files with some tag +;; `um-tag-dwim': insert or delete a tag in dired and other contexts. (require 'project) @@ -159,7 +159,7 @@ (match-string 1 header) )) -(defun um-grep-tag () +(defun um-tag-grep () "Run `project-find-regexp' on a selection made from `um-tags-history' via `completing-read'. The initial value provided to `completing-read' is the first tag found in the @@ -206,7 +206,7 @@ insert when INSERT > 0, delete otherwise." (um-tag-delete tag))) ;;;###autoload -(defun um-tag-insert-dwim (ARG) +(defun um-tag-dwim (ARG) "Run `um-tag-do' on a list of filenames if region active outside dired-mode, or if marks exist in dired-mode, or the filename at point, and finally in the current buffer if none of those conditions match.