Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a recipe: aweshell #2691

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

add a recipe: aweshell #2691

wants to merge 3 commits into from

Conversation

yfwu
Copy link
Contributor

@yfwu yfwu commented Mar 10, 2019

Aweshell is a powerful extension to the original eshell.

@yfwu yfwu changed the title aweshell add a recipe: aweshell Mar 10, 2019
:description "Awesome shell extension base on eshell with wonderful features!"
:pkgname "manateelazycat/aweshell"
:post-init
(require 'aweshell))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this require really needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The author doesn't use autoload in the code. I have no idea which function should I add autoload in the recipe, so I use require to load it. Any suggestion of fixing this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea which function should I add autoload in the recipe,

The interactive commands are usually a good place to start. May ask the package author too?

Aweshell will be required once the user initializes the eshell-mode
@yfwu
Copy link
Contributor Author

yfwu commented Dec 29, 2019

This should work. When the user initializes the eshell-mode, the aweshell will be required.

:description "Awesome shell extension base on eshell with wonderful features!"
:pkgname "manateelazycat/aweshell"
:prepare
(autoload 'eshell "aweshell" nil t))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks strange and likely to break eshell to me. Maybe use (eval-after-load 'eshell '(require 'aweshell)) instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants