Skip to content

Commit

Permalink
feat: open the direnv directory with dired
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonHakansson committed Jan 23, 2024
1 parent 0f95526 commit 7200a9d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions org-nix-shell.el
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ Use format string %s to get the direnv path."
(org-nix-shell-load-direnv)
(error nil))))

;;;###autoload
(defun org-nix-shell-dired ()
"Open the direnv directory with dired."
(interactive)
(let ((direnv-path (funcall org-nix-shell-get-direnv-path)))
(dired direnv-path)))

;;;###autoload
(defun org-nix-shell-load-direnv ()
"Construct and load nix shell environment from src block with name `org-nix-shell-src-block-name'."
Expand Down

0 comments on commit 7200a9d

Please sign in to comment.