-
-
Notifications
You must be signed in to change notification settings - Fork 141
Added heading and file icons #123
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
Conversation
Could you help me to pass the linting checks? I fixed all the indicated errors but it still gives me the incorrect indentation error and doesn't tell me why. Please tell me what is it so that I can fix it. |
Thank you @ema2159 for the hard work! I'll try to take a look at it during this weekend. 👏 |
I find the problem with the lint. You need to update ((emacs-lisp-mode . ((indent-tabs-mode . nil)
(fill-column . 100)
(elisp-lint-indent-specs . ((when-let . 1)))))) That would set After that, you could test it running |
@ema2159 One little thing. I really like the changes you propose. I want them to be included in the next |
dashboard-widgets.el
Outdated
|
||
;; | ||
;; Add file icons | ||
;; MUST redefine the sections because of the macro `dashboard-insert-section-list' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which one? or both of them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 334
Yes sir, I'll do that as soon as I'm out of the office, probably between today's afternoon and tomorrow. |
No rush on the changes 😉 There is a |
Ok perfect. I also wanted to ask you what do you consider good defaults? I mean, I put all the defcustoms in nil thinking that maybe someone didn't had all-the-icons installed but I'm also thinking that people may miss that the icons option is available. |
There were two errors failing in the CI. One was the indentation check that is fixed now. The other one is: In toplevel form:
dashboard-widgets.el:396:49:Error: ‘(path (car (last (split-string (abbreviate-file-name el) " - "))))’ is a malformed function This happens when trying to byte-compile |
Yes, I think Emacs 25 doesn't support the when-let macro. Changing that for a separated let, when expression seems to fix it |
Do you know exactly how do I have to include the all the icons package so that it doesn't complain about free variables or functions? |
In |
For some reason the master test failed to install page break lines and that made that test fail, but the others seem ok. |
I was preparing a new PR to update emacs version in the CircleCI configuration. And I found the same problem. Let me work on that one later (WIP #124). Once that one gets merged, we should be good to go! |
Seems that we're done! I've separated the PR as you told me and everything seems to be working fine! If there's anything else I can help you with just let me know! |
- emacs 25.3 - emacs 26.2 - emacs master
#124 is merged! The problem was a missing coding setting. Feel free to rebase this branch against master or merge master in this branch (as you prefer). |
Done, all the checks are passing now. What do I do now with the init info PR? |
Nice to see the features of Centaur Emacs are merged! Thank you! One question: Did you test this scenario: If user doesn't install I also add some comments below. |
The new features have been merged in emacs-dashboard/emacs-dashboard#123.
No sir, I personally haven't, but I guess it probably just display ugly icons as it usually does when the icons aren't installed, that's why I defaulted the icon's defcustom to nil, but it shouldn't be a bigger problem than that because all the icons was added as a dependency. |
@ema2159 I was not talking about icons, but about the Regarding #128 , I have to say it was as designed, since the icons are not widgets/buttons or the part of them, for displaying correctly. The buttons have different face properties which will break the properties of icons. That's why the |
Yes I understand, but now all the icons is a dependency so it's installation is ensured with use package. And regarding #128, I understand, so a work around would be that when the shorcut buttons are pressed the cursor fell directly into the text instead of the icon, do you know how to do this? |
Okay. Glad you understand the risks. Aha, and I have a great news, I think I found the solution for #128 . Should I submit a PR? |
Of course, feel free to submit a PR and contribute! 😄 |
Already committed. Please review and merge. Thanks! |
The following features were added (inspired in Centaur Emacs configuration):
It was heavily inspired in the Centaur Emacs custom version of Dashboard. I also included a couple of enhancements like adding bullet icons for the org agenda or detecting when a file is remote (tramp) and add a "remote" icon, without establishing a connection (which Centaur Emacs didn't do) which makes it much more efficient.
I tried to keep it consistent with the repo coding style and I tried to make it the most readable possible (though elisp is a language that I am not very familiar with and I've not used it much besides from configuring my emacs).
It currently looks like this:
