Skip to content

Instantly share code, notes, and snippets.

@mmajewsk
Created July 28, 2020 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmajewsk/ab8bf7753d5d59027dfbbe8ab68578ef to your computer and use it in GitHub Desktop.
Save mmajewsk/ab8bf7753d5d59027dfbbe8ab68578ef to your computer and use it in GitHub Desktop.
Emacs problem
((nil . ((eval . (
defvar projectile-main-project "/home/mwm/repositories/LHCb/ml_analysis_recreation"
)))))
(defun use-main-project (&rest args)
"Skip calling `projectile-project-root' when there is a main project defined."
(when projectile-main-project
projectile-main-project))
(advice-add #'projectile-project-root :before-until #'use-main-project)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment