Git Product home page Git Product logo

Comments (5)

 avatar commented on July 17, 2024

(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)

from emacs-calfw.

junyi-hou avatar junyi-hou commented on July 17, 2024

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.

from emacs-calfw.

jasonhemann avatar jasonhemann commented on July 17, 2024

@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.

from emacs-calfw.

 avatar commented on July 17, 2024

@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).

from emacs-calfw.

jasonhemann avatar jasonhemann commented on July 17, 2024

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.

from emacs-calfw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.