Skip to content

embark-target-finder for current buffer/file? #231

@karthink

Description

@karthink

How can I write an embark-target-this-file and embark-target-this-buffer that act on the current file/buffer? I have a bunch of functions like load-this-file, byte-compile-this-file, sudo-this-file and built-in ones like diff-buffer-with-file that I would like to call using embark directly. Right now I do dired-jump, then call embark on the current file.

These target finders should, of course, have a lower priority than embark-target-active-region, embark-target-file-at-point etc, so they're only activated if all the other target finders fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions