yilkalargaw / org-auto-tangle

a simple emacs package to allow org file tangling upon save
BSD 2-Clause "Simplified" License
135 stars 15 forks source link

Error when tangling with "/sudo" #27

Open refaelsh opened 1 year ago

refaelsh commented 1 year ago

I have the following in my org file:

#+PROPERTY: header-args :dir :tangle "/sudo::/etc/nixos/configuration.nix" 

When using this package like this:

(use-package! org-auto-tangle
  :defer t
  :hook (org-mode . org-auto-tangle-mode)
  :config
  (setq org-auto-tangle-default t))

I get the following error when my org file gets auto tangled:

error in process sentinel: Opening output file: No such file or directory, /sudo::/etc/nixos/ #configuration.nix