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

No luck with straight, nor with apt #131

Open
jaromrax opened this issue Feb 18, 2021 · 5 comments
Open

No luck with straight, nor with apt #131

jaromrax opened this issue Feb 18, 2021 · 5 comments

Comments

@jaromrax
Copy link

Hi,
I tried straight-use-package with calfw, calfw-cal, calfw-org
in this order and I was only able to see a basic calendar.
No org stuff, nothing, no way to get an event displayed in it.
I tried apt install emacs-calfw, which crashes on Ubuntu 20.04.

Is the project still alive?
Jaro

@ghost
Copy link

ghost commented Mar 8, 2021

(require 'calfw-org)

See https://github.com/kiwanami/emacs-calfw#general-setting

Also how did you configure your straight recipe? Mine is:

(use-package calfw
  :straight (:host github :repo "kiwanami/emacs-calfw")
  :config
  (with-eval-after-load 'calfw
	(use-package calfw-ical
	  :straight (:host github :repo "kiwanami/emacs-calfw"))
	(use-package calfw-org
	  :straight (:host github :repo "kiwanami/emacs-calfw"))
	(use-package calfw-cal
	  :straight (:host github :repo "kiwanami/emacs-calfw"))))

Of course because I use use-package I don't need explicitly write (require 'calfw-org)

@junyi-hou
Copy link

straight.el has a :file keyword for which you can specify which file(s) get simlinked to build folder. In this case, I use

  (use-package calfw
    :straight (:host github :repo "kiwanami/emacs-calfw" :files ("calfw-org.el" "calfw.el"))

feel free to add calfw-cal and calfw-ical in the :files list to suit your need.

@jasonhemann
Copy link

@junyi-hou , hijacking this thread. Could you please talk generally about the benefits and consequences of symlinking files into the build folder. Does that relate to / make it unnecessary to (require 'foo) ? I did try and investigate for myself but these keywords are fairly Google-proof.

@ghost
Copy link

ghost commented Jun 10, 2021

@junyi-hou , hijacking this thread. Could you please talk generally about the benefits and consequences of symlinking files into the build folder. Does that relate to / make it unnecessary to (require 'foo) ? I did try and investigate for myself but these keywords are fairly Google-proof.

well its just how straight.el works. straight.el will symlink files from the repo folder to build folder, so that it can split packages that in the same repo into different folder. Take ivy, swiper, counsel for example, they are different package but in the same github repo. The symlinks is provided by the recipes from melpa, elpa and emacsmirror but striaght.el allows you to override them.

The build folders then added to emacs load-path by straight.el so that you can require it.
straight.el will build autoloads for you, so if the package have properly used autoloads you shouldn't have to (require 'foo).

@jasonhemann
Copy link

Thank you @pRot0ta1p. I find that for several I still need to manually require pieces, so maybe I will have to look at their use of autoloads.

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

3 participants