Giter Site home page Giter Site logo

Comments (4)

manuel-uberti avatar manuel-uberti commented on August 22, 2024 1

To expand on :after: I have replaced almost all the uses of with-eval-after-load with that. But yes, you're right of course: it's the same thing, just more pleasant to my eyes.

from .emacs.d.

manuel-uberti avatar manuel-uberti commented on August 22, 2024

Wild guess: using :after dired like this could solve the problem?

(use-package dired-single
  :after dired
  :bind (:map modi-mode-map
...

from .emacs.d.

kaushalmodi avatar kaushalmodi commented on August 22, 2024

First of all, thank you @smithx for trying out my config and help me make it better.

I failed seeing that error as I save my sessions and load them when I next start emacs. When I started emacs without loading a saved session, this issue showed up.

The issue is now fixed in commit 3b926c1.

Thanks @manuel-uberti for the proposed fix. I haven't yet started using the :after keyword with use-package. But the fix is in essence similar. Instead of loading the whole dired-single after loading dired, I chose to evaluate just the bindings to dired-mode-map after the loading of dired. The reason is dired-single functions will anyways first load dired, because dired is autoloaded with dired-get-filename is called by the dired-single functions.

Below code snippet is from dired-single.el:

(eval-and-compile
  (autoload 'dired-get-filename "dired"))

I have tested the fix to work with an emacs session without loading desktop.

Let me know if this works for you too.

from .emacs.d.

smithx avatar smithx commented on August 22, 2024

Thank you for fix

from .emacs.d.

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.