GithubHelp home page GithubHelp logo

.emacs slowdown about ac-nrepl HOT 5 CLOSED

clojure-emacs avatar clojure-emacs commented on June 28, 2024
.emacs slowdown

from ac-nrepl.

Comments (5)

purcell avatar purcell commented on June 28, 2024

Thanks for taking the time to file this.

The preferred way to configure ac-nrepl is actually now to install ac-cider instead, because ac-nrepl is marked as deprecated! :-)

Hopefully switching over is an option, but in any case, no further development is likely to be done here.

For reference, the config I personally use for ac-cider is here: https://github.com/purcell/emacs.d/blob/master/lisp/init-clojure-cider.el

from ac-nrepl.

memeplex avatar memeplex commented on June 28, 2024

@purcell thank you for the heads up, I didn't know about ac-cider. I've already installed it.

Anyway, wouldn't it be preferable to hook ac-cider to cider-mode instead of directly requiring it at startup?

from ac-nrepl.

memeplex avatar memeplex commented on June 28, 2024

I'm still noticing a delay of about 1-2 seconds when requiring ac-cider at startup. My computer is slow, but the delay is significant in relative terms (the entire startup requires about 4 seconds, ac-cider included).

from ac-nrepl.

purcell avatar purcell commented on June 28, 2024

Have you tried relying on the autoloads instead? While the ac-cider (and ac-nrepl) example .emacs snippets include:

(require 'ac-cider)

they should work fine without that line if you've installed them via package.el.

So if you remove that line from your config, it will likely have the result that the delay will not happen until you first start working on clojure code.

from ac-nrepl.

memeplex avatar memeplex commented on June 28, 2024

Thank you for the tip!

from ac-nrepl.

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.