Skip to content

add a recipe: aweshell#2691

Open
yfwu wants to merge 3 commits intodimitri:masterfrom
yfwu:aweshell
Open

add a recipe: aweshell#2691
yfwu wants to merge 3 commits intodimitri:masterfrom
yfwu:aweshell

Conversation

@yfwu
Copy link
Copy Markdown
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
Comment thread recipes/aweshell.rcp Outdated
:description "Awesome shell extension base on eshell with wonderful features!"
:pkgname "manateelazycat/aweshell"
:post-init
(require 'aweshell))
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

yfwu commented Dec 29, 2019

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

Comment thread recipes/aweshell.rcp
:description "Awesome shell extension base on eshell with wonderful features!"
:pkgname "manateelazycat/aweshell"
:prepare
(autoload 'eshell "aweshell" nil t))
Copy link
Copy Markdown
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