-
Notifications
You must be signed in to change notification settings - Fork 79
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
How to install? #4
Comments
Same ask! |
A good first step is to refactor all the custom I’d volunteer to make a PR, but I’m kinda swamped with other work right now. |
You can clone this repo inside
PS: I am not an emacs expert, I am just sharing what worked for me 😃 |
How would you use this with doom emacs? I've tried the following: packages.el: (package! elegant-emacs
:recipe (:host github :repo "rougier/elegant-emacs")) config.el: (use-package elegant-emacs) Then I run
My doom emacs setup looks like this:
|
I think it should be separated into multiple packages, like: |
These are the relevant portions of code (based on having just walked through it) for the pieces of this that aren't the theme. Just pasting here so others can pluck the parts that make it look really nice and can match it with their preferred theme.
|
Are anyone planning to put this on Melpa? Otherwise I might fork it and do it myself. |
Please fork it and do it. :)
…On Sat, Jul 11, 2020, at 1:39 PM, fossegrim wrote:
Are anyone planning to put this on Melpa? Otherwise I might fork it and do it myself.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAA6DJFY4XXPTXOEP5VKALR3DEWNANCNFSM4ODLFI2Q>.
|
Glad to see this great work can be available on MELPA. |
Alright. I will see what I can do. |
With some instructions on how to do it I can try to make it available on Melpa. |
@rougier Check out MELPA README |
@rougier It's pretty easy -- just add a recipe (like 3 lines) and make a PR to MELPA. |
I had some problems with packaging it so for now I will leave the task to upstream. |
There is more to it than that. You cannot upload the repo as is. Instead you need to properly package it into a single file package and ensure that it passes all of Melpa's quality and packaging requirements. Initially I found this quite overwhelming as I was learning the basics of Emacs packaging concurrently. If you have no experience creating Emacs packages I recommend starting out by reading [https://www.gnu.org/software/emacs/manual/html_node/elisp/Packaging.html](Preparing Lisp code for distribution) of the Emacs manual. Get it working locally before trying to pass Melpa's requirements. |
Thanks for all the pointers. I'll try to do it by the end of the month. |
Installation with quelpa-use-package: (use-package elegance
:quelpa (elegance :fetcher github :repo "rougier/elegant-emacs")
:ensure t
:config
(require 'elegance)
;; depending on whether or not you want sanity.el
(require 'sanity)) |
Temporary use quelpa-use-package is fine. I got error after install it:
|
Maybe you need to install the fira code font. It is used to display symbols at end of cur/overcrapped lines (instead of the fringe) |
I have fira code font installed. It seems not font problem? |
Oh, just realized I merged some mofification some days ago since we're preparing the package for Melpa. That might be the reason. |
I've tried the same install as suggested by @firmart, however I had to comment out these: ;; (set-display-table-slot standard-display-table 'truncation
;; (make-glyph-code ?… 'fallback))
;; (set-display-table-slot standard-display-table 'wrap
;; (make-glyph-code ?↩ 'fallback))
;; (set-display-table-slot standard-display-table 'selective-display
;; (string-to-vector " …")) as emacs would complain during initialisation that (defun mode-line-render (left right)
(let* ((available-width (- (window-width) (length left) )))
(format (format "%%s %%%ds" available-width) left right))) to reduce the |
I've ended up cloning the repo next to the (defun load-relative-file (f)
(load-file (expand-file-name f (file-name-directory load-file-name))))
(load-relative-file "elegant-emacs/sanity.el")
(load-relative-file "elegant-emacs/elegance.el")
(elegance-light) ;; I'd rather have the light than dark theme. for some reason loading it via use-package produces lots of issues. |
You might be interested in https://github.com/rougier/nano-emacs where I try to break things into different files. |
For the Doom emacs users, adding the nano-emacs repository to packages.el:
and requiring the theme at the end of config.el, for example:
seems to work. Note that (require 'nano-layout) gives an error. |
I also had to add |
|
Almost perfect! How about |
My understanding is this is intentional behavior to load a scratch buffer after a second or so. @rougier can correct me otherwise though. |
Yes, the splash screen is supposed to stay for exactly 0.5 seconds (and can be even interrupted with any key of interaction). |
Hey, config.el
I am not sure if all of this is needed - but it looks now how i expected it to look like :-) For completeness following parts i also changed: packages.el
Unfortunately I got this not yet in version control and henceforth cannot show a git diff for this. I am still playing around with Doom and nano-emacs :) |
Can you open an issue at https://github.com/rougier/nano-emacs once done? |
This is beautiful! How to install this "theme" alongside one's existing setup?
Thanks in advance!
The text was updated successfully, but these errors were encountered: