necaris / conda.el

Emacs helper library (and minor mode) to work with conda environments
MIT License
153 stars 49 forks source link

Error when running the suggested config #149

Open chookity-pokk opened 10 months ago

chookity-pokk commented 10 months ago

I downloaded the package and put the suggested config in my init and when executing it I got the below error.

Debugger entered--Lisp error: (void-function add-to-hook)
  (add-to-hook 'find-file-hook #'(lambda nil (if (and (boundp 'conda-project-env-path) conda-project-env-path) (progn (conda-env-activate-for-buffer)))))
  eval((add-to-hook 'find-file-hook #'(lambda nil (if (and (boundp 'conda-project-env-path) conda-project-env-path) (progn (conda-env-activate-for-buffer))))) nil)
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)

If I remove the add-to-hook then it runs just fine.

OS: MacOS 13.5.1

Emacs version 29.1