Coder Social home page Coder Social logo

Comments (8)

christianromney avatar christianromney commented on May 26, 2024 1

Can't wait for the faces enhancement to hit MELPA!

from emacs-direnv.

wbolster avatar wbolster commented on May 26, 2024

good idea. how would this work with automatic updates via the minor mode?

from emacs-direnv.

wbolster avatar wbolster commented on May 26, 2024

i noticed that you deprecated projectile-direnv. existing users of that one should not have any steps back when switching to this one.

i will add this feature, it makes a lot of sense. :)

stay tuned.

from emacs-direnv.

wbolster avatar wbolster commented on May 26, 2024

i implemented this in 95cd08b.

please try it out, and have a look at the updated readme.

feedback and ideas welcome!

from emacs-direnv.

wbolster avatar wbolster commented on May 26, 2024

i have added nice colour support for the summary message, which is just so awesome that it is enabled by default. mandatory screenshot:

image

/cc @christianromney any other features or behaviours from projectile-direnv that do not have an alternative that is at least as good in this package?

from emacs-direnv.

christianromney avatar christianromney commented on May 26, 2024

@wbolster This looks great. For some reason direnv--installed isn't being set for me.
When I manually run (executable-find "direnv") it returns the correct path "/usr/local/bin/direnv", but it's not set when I start emacs. If I explicitly setq it in my config, everything works perfectly. Great work!

from emacs-direnv.

wbolster avatar wbolster commented on May 26, 2024

@christianromney thanks for the kind words.

re. your intitlalisation issue: how do you start emacs? do you change exec-path upon startup, e.g. via exec-path-from-shell?

can you try to add

(message "%s" exec-path)

at the top of your init.el, and also right before you load direnv, i.e. right above (direnv-mode) (if you use that and rely on the autoload). do those paths contain /usr/local/bin/?

manually setting direnv--installed is a hack (it's an internal variable after all).

the reason for the check is that not having direnv installed gives ugly errors in the post-command-hook that direnv-mode installs. i will add a warning when direnv-mode is enabled but direnv could not be found.

from emacs-direnv.

wbolster avatar wbolster commented on May 26, 2024

@christianromney fyi, in dd0b8c0 i added "detect again" logic when enabling direnv-mode and when direnv was not detected before. does that help?

from emacs-direnv.

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.