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

adds dired to defcustom #110

Merged
merged 1 commit into from
Feb 14, 2018
Merged

adds dired to defcustom #110

merged 1 commit into from
Feb 14, 2018

Conversation

FrancescElies
Copy link
Collaborator

I would like to use ranger's deer instead of dired when prodigy-jump-dired

Could we add a configuration parameter with defcustom?

@rejeep
Copy link
Owner

rejeep commented Feb 2, 2018

I think we should call this variable something else. I don't know what name would be good, but perhaps something like "file manager"?

prodigy.el Outdated
could use any other `dired' like function. To use e.g. `ranger'
set it to `deer'"
:group 'prodigy
:type 'symbol)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be a function type instead of symbol, that way Emacs can validate it's a function and even give better completion.

For extra bonus points use radio and pre-fill the most common options (so dired and deer for example) and add a row for "custom function" See https://www.gnu.org/software/emacs/manual/html_node/elisp/Composite-Types.html#Composite-Types

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't know about this, thanks

@FrancescElies
Copy link
Collaborator Author

FrancescElies commented Feb 2, 2018

@rejeep @Fuco1 thanks for your feedback, I addressed the things you pointed out, I would be happy if you could have a look to it again :)
Best

prodigy.el Outdated
@@ -1279,7 +1287,7 @@ SIGNINT signal."
"Jump to dired mode for service at point."
(interactive)
(-when-let (service (prodigy-service-at-pos))
(dired (prodigy-service-cwd service))))
(funcall prodigy-file-manager (prodigy-service-cwd service))))
Copy link
Owner

Choose a reason for hiding this comment

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

You should also update the name of this (prodigy-jump-dired ) method and update the docs for it. There is also a binding to this function.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Makes sense, I renamed that function and updated the doc, would it be ok what I wrote?

- adds radio vaoues dired & deer
- renames prodigy-jump-dired and updates docstring
FrancescElies added a commit to FrancescElies/spacemacs that referenced this pull request Feb 9, 2018
@FrancescElies
Copy link
Collaborator Author

Kind reminder, if is there something else I could in this PR please let me know, I'll be glad to do it. Thanks in advance for your time

Copy link
Owner

@rejeep rejeep left a comment

Choose a reason for hiding this comment

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

Sorry about that @FrancescElies, looks good now, will merge!

@rejeep rejeep merged commit 507937d into rejeep:master Feb 14, 2018
@FrancescElies FrancescElies deleted the cesc/add-dired-function-to-customize branch February 15, 2018 09:08
@FrancescElies
Copy link
Collaborator Author

Sorry about that @FrancescElies, looks good now, will merge!

Nothing to be sorry about, thanks for your help!

FrancescElies added a commit to FrancescElies/spacemacs that referenced this pull request Feb 19, 2018
Fuco1 added a commit that referenced this pull request Feb 21, 2018
@Fuco1 Fuco1 mentioned this pull request Feb 21, 2018
syl20bnr pushed a commit to syl20bnr/spacemacs that referenced this pull request Feb 25, 2018
braineo pushed a commit to braineo/spacemacs that referenced this pull request Feb 25, 2018
pinetr2e pushed a commit to pinetr2e/spacemacs that referenced this pull request Mar 7, 2018
ztlevi pushed a commit to ztlevi/spacemacs that referenced this pull request Apr 26, 2018
alanjferguson pushed a commit to alanjferguson/spacemacs that referenced this pull request May 14, 2018
buckarooch pushed a commit to profilech/.emacs.d that referenced this pull request May 19, 2018
gdkrmr pushed a commit to gdkrmr/spacemacs that referenced this pull request Jun 26, 2018
CodingSolo pushed a commit to CodingSolo/spacemacs that referenced this pull request Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants