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

Install with straight.el #43

Closed
Linuus opened this issue Dec 30, 2020 · 10 comments
Closed

Install with straight.el #43

Linuus opened this issue Dec 30, 2020 · 10 comments

Comments

@Linuus
Copy link

Linuus commented Dec 30, 2020

I tried to install with straight.el but I'm not sure how to... Maybe someone has successfully installed it with straight?

What I've tried is:

  (use-package nano-emacs
    :straight (:host github :repo "rougier/nano-emacs")
    :demand t)

Which gives the error:

error: nano-writer.el:0:0: error: scan-error: (Unbalanced parentheses 2898 4298)

I assume I'm just doing something wrong here.... maybe someone can point me in the right direction?

@rougier
Copy link
Owner

rougier commented Dec 31, 2020

There was a missing paren in the mode. I've just fixed it, can you give a retry?

@Linuus
Copy link
Author

Linuus commented Dec 31, 2020

Sure. It looks like I'm getting a bit further now at least!

With this:

  (use-package nano-emacs
    :straight (:host github :repo "rougier/nano-emacs")
    :demand t
    :config
    (nano-faces)
    (nano-theme))

I get Error (use-package): Cannot load nano-emacs though. I've tried to get some more debug info but to no success 🤔 Will try more a bit later.

@Linuus
Copy link
Author

Linuus commented Dec 31, 2020

Ah it tries to load a a package named nano-emacs but there is no such file. I’ll just remove the demand and require the files manually. It should work :)

@Linuus Linuus closed this as completed Dec 31, 2020
@bakirtzisg
Copy link

@Linuus Could you post a full solution? This is my current problem with trying straight and NΛNO. See #37

@Linuus
Copy link
Author

Linuus commented Jan 7, 2021

I changed my mind and kept doom-nord instead, but something like this:

  (use-package nano-emacs
    :straight (:host github :repo "rougier/nano-emacs")
    :config
    (require 'nano-faces)
    (require '....)
    (nano-faces))

I think you need to require stuff in the correct order etc. or it might not work.

@WillPower3309
Copy link
Contributor

Anyone looking for this still, here is what I do:

(straight-use-package
 '(nano-emacs :type git :host github :repo "rougier/nano-emacs"))

from here, just paste the nano.el contents below. My personal config is as follows:

(straight-use-package
 '(nano-emacs :type git :host github :repo "rougier/nano-emacs"))

(require 'nano-theme-dark)

(require 'nano-faces)
(nano-faces)

(require 'nano-theme)
(nano-theme)

;; Nano header & mode lines
(require 'nano-modeline)

;; Welcome message
(let ((inhibit-message t))
  (message "Welcome to GNU Emacs / N Λ N O edition")
  (message (format "Initialization time: %s" (emacs-init-time))))

(require 'nano-splash)

@rougier
Copy link
Owner

rougier commented May 17, 2021

Maybe this should go to the README or an INSTALL file. Anyone willing to make a PR?

@WillPower3309
Copy link
Contributor

Maybe this should go to the README or an INSTALL file. Anyone willing to make a PR?

I can! It works seamlessly with a couple of caveats that are important to note

@caleb
Copy link

caleb commented May 8, 2023

I got nano working with use-package.... the issue was that the package name was just nano and not nano-emacs

@wunki
Copy link

wunki commented Jul 4, 2023

In the end, this is what I ended up doing:

(use-package nano-emacs
  :demand
  :no-require t
  :straight (:host github :repo "rougier/nano-emacs")
  :defines (nano-font-family-monospaced nano-font-size)
  :config
  (setq nano-font-family-monospaced "Berkeley Mono")
  (setq nano-font-size 14)
  (require 'nano))

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

No branches or pull requests

6 participants