GithubHelp home page GithubHelp logo

Inhibit xref check on save about edts HOT 9 CLOSED

sebastiw avatar sebastiw commented on July 24, 2024
Inhibit xref check on save

from edts.

Comments (9)

tjarvstrand avatar tjarvstrand commented on July 24, 2024

You can add (setq edts-xref-checks nil) to your .emacs

from edts.

SpaceOgre avatar SpaceOgre commented on July 24, 2024

I have tried that but I still get red and blue lines with different warnings errors when I save. Maybe I have mixed something up and that it is not the xref check that does that?

from edts.

tjarvstrand avatar tjarvstrand commented on July 24, 2024

Then they are probably comoilation errors. If you put your cursor or mouse pointer at the error, you'll see a message with the reason.

from edts.

SpaceOgre avatar SpaceOgre commented on July 24, 2024

Yes that is correct, is there a way then to not compile at save? or atleast not show the errors?

from edts.

tjarvstrand avatar tjarvstrand commented on July 24, 2024

A quick workaround is to add
(remove-hook 'after-save-hook 'edts-code-compile-and-display)

to your .emacs, just make sure to put it after requring edts-start

from edts.

SpaceOgre avatar SpaceOgre commented on July 24, 2024

I couldn't get it to work so I just removed the add-hook from edts-start.el instead. I agree that your workaround should work but I have no idea why it didn't.

Thanks for all the help though!

from edts.

tjarvstrand avatar tjarvstrand commented on July 24, 2024

Ah, it's because the hook is added when during project initialization when you open the file. Try

(defalias 'edts-code-compile-and-display 'ignore)

from edts.

SpaceOgre avatar SpaceOgre commented on July 24, 2024

That worked!

from edts.

tjarvstrand avatar tjarvstrand commented on July 24, 2024

Actually that will likely ruin code jumping and other things since you won't load updated versions of the modules you change. A better solution might be to use:
(setq 'edts-code-after-compilation-hook nil)
(defalias 'edts-face-display-overlay 'ignore)

from edts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.