Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org-babel-tangle-file failed with nix-mode #194

Open
A7R7 opened this issue Nov 10, 2023 · 1 comment
Open

org-babel-tangle-file failed with nix-mode #194

A7R7 opened this issue Nov 10, 2023 · 1 comment

Comments

@A7R7
Copy link

A7R7 commented Nov 10, 2023

I installed nix-mode with

  (use-package nix-mode
  :mode "\\.nix\\'"
  )

I'm writing nix with org-babel. Whenever I call (org-babel-tangle-file (buffer-file-name)), it errors

error in process sentinel: Symbol’s function definition is void: nix-mode

and the tangle process failed.

However, M-x org-babel-tangle do not have this issue. I use (org-babel-tangle-file (buffer-file-name)) because it's part of org-auto-tangle.

What is probably causing this problem?

@A7R7 A7R7 changed the title org-babel-tangle-file org-babel-tangle-file failed with nix-mode Nov 10, 2023
@bestlem
Copy link

bestlem commented Dec 28, 2023

I suspect it is the issue yilkalargaw/org-auto-tangle#24.

I think what is happening is that the async process is running a new emacs process which just has (require "org) and the buffer variables in the init.el of the new process.

Thus it knows nothing about nix-mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants