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 (optional) ebib support to bibtex layer #14876

Merged

Conversation

dalanicolai
Copy link
Contributor

Ebib is a nice new Emacs application to manage bibtex references.This PR adds optional (via a layer variable) installation and configuration of the ebib package.

Currently, it only adds the most basic configurations to make it fit into Spacemacs. Additional configurations are welcome but they are not essential.

@dalanicolai dalanicolai force-pushed the add-ebib-support-to-bibtex-layer branch 2 times, most recently from ca636cf to cc286e4 Compare June 28, 2021 11:09
Copy link
Contributor

@arifer612 arifer612 left a comment

Choose a reason for hiding this comment

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

Shouldn't biblio also have a toggle or use bibtex-enable-ebib-support since it is only used by ebib-biblio? Otherwise it would be installed even when the user does have any use for the package.

layers/+lang/bibtex/packages.el Show resolved Hide resolved
layers/+lang/bibtex/packages.el Outdated Show resolved Hide resolved
@dalanicolai dalanicolai force-pushed the add-ebib-support-to-bibtex-layer branch from cc286e4 to 61a9e63 Compare June 29, 2021 10:24
layers/+lang/bibtex/README.org Show resolved Hide resolved
layers/+lang/bibtex/README.org Outdated Show resolved Hide resolved
layers/+lang/bibtex/packages.el Show resolved Hide resolved
(evilified-state-evilify-map ebib-log-mode-map
:mode ebib-log-mode)

(use-package ebib-biblio
Copy link
Collaborator

Choose a reason for hiding this comment

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

ebib-biblio is not a package. it's a feature of ebib.
So you should have :after (biblio) in (use-package ebib) instead.
Then in its :config, add ebib-biblio-selection-import key binding.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ebib-biblio really has to get loaded separately (see here). But indeed I could use the :after (biblio) in (use-package ebib) and then (require ebib-biblio) in the :config. But I think it does not make much of a difference (or maybe does it?)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the upstream author is abusing use-package.
For example, Spacemacs has defined a core-configuration-layer feature. You can try (use-package core-configuration-layer), since it's found in load path, it will succeed.

Basically, any feature found in load path can be declared as a package via use-package. But it's really not a package.

Copy link
Contributor Author

@dalanicolai dalanicolai Jul 6, 2021

Choose a reason for hiding this comment

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

Your argument for/perspective on using the appropriate 'labels' for the various cases, makes sense. But it seems that, practically, it should not make much of a difference as use-package for this case simply expands to require (see here). But it is fine for me to 'adapt' the 'terminology'.

layers/+web/eww/packages.el Show resolved Hide resolved
layers/+lang/bibtex/packages.el Outdated Show resolved Hide resolved
@dalanicolai dalanicolai force-pushed the add-ebib-support-to-bibtex-layer branch 2 times, most recently from 7b08e87 to cf1e33d Compare June 30, 2021 12:41
@dalanicolai
Copy link
Contributor Author

dalanicolai commented Jun 30, 2021

I have removed the comment about migration to JabRef because its browser extension turns out not to be so good (I will probably stay with jabref myself, but don't really explicitly recommend it at the moment. It still is quite nice though)

@dalanicolai dalanicolai force-pushed the add-ebib-support-to-bibtex-layer branch from 81fb4e6 to 7877b99 Compare July 6, 2021 16:05
This commit moves the eww keybindings to make them available for ebib provided
by the bibtex layer
@dalanicolai dalanicolai force-pushed the add-ebib-support-to-bibtex-layer branch from 7877b99 to fdee20f Compare July 6, 2021 16:07
@lebensterben
Copy link
Collaborator

@dalanicolai
I'm about to merge this and want to know if you've anything to add to the PR, since a long time has passed.

@dalanicolai
Copy link
Contributor Author

As far as I remember, this PR was ready to get merged, otherwise I would have made the changes already. Thanks again!

@lebensterben lebensterben merged commit 80386e8 into syl20bnr:develop Aug 25, 2021
@lebensterben
Copy link
Collaborator

merged. thanks for your contributions

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.

None yet

3 participants