Skip to content

Commit

Permalink
files: replace related-files with find-sibling
Browse files Browse the repository at this point in the history
  • Loading branch information
terlar committed Aug 2, 2023
1 parent 14d5970 commit 7b3149d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 39 deletions.
20 changes: 4 additions & 16 deletions init.org
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,8 @@ Display available keybindings in a popup as you press keys.
:keymaps 'global
;; Editing
"C-z" 'zap-up-to-char
;; Files
"C-x j" 'find-sibling-file
;; Region
"C-x r S" 'sort-lines)
#+end_src
Expand Down Expand Up @@ -3370,9 +3372,8 @@ Add faces to =outline-minor-mode= in order to make the headings stand out.
:init
(setq gofmt-command "goimports")
:config
(eval-when-compile (require 'related-files))
(with-eval-after-load 'related-files
(cl-pushnew '(recipe :remove-suffix ".go" :add-suffix "_test.go") related-files-jumpers :test #'equal)))
(cl-pushnew '("\\([^/]+\\)\\.go\\'" "\\1_test.go") find-sibling-rules :test #'equal)
(cl-pushnew '("\\([^/]+\\)_test\\.go\\'" "\\1.go") find-sibling-rules :test #'equal))
#+end_src

*** Packages
Expand Down Expand Up @@ -4523,19 +4524,6 @@ Packages that I am currently testing or evaluating.
(use-package org-roam :ensure t)
#+end_src

** related-files
#+begin_src emacs-lisp :tangle yes
(use-package related-files
:ensure t
:general
("C-x j" 'related-files-jump
"C-x J" 'related-files-make))

(use-package related-files-recipe
:demand t
:after related-files)
#+end_src

** shrface
#+begin_src emacs-lisp :tangle yes
(use-package shrface :ensure t)
Expand Down
17 changes: 0 additions & 17 deletions lock/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions lock/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1153,12 +1153,6 @@
repo = "rego-mode";
type = "github";
};
related-files = {
flake = false;
owner = "DamienCassou";
repo = "related-files";
type = "github";
};
relative-buffers = {
flake = false;
owner = "terlar";
Expand Down

0 comments on commit 7b3149d

Please sign in to comment.