Comments (5)
(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.
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.
@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.
@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.
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)
- Issue writing diary (org-journal) entries to calfw-cal
- Reading from CalDav
- cfw:open-ical-calendar Wrong number of arguments HOT 1
- Show calendar week number
- Function to open calendar in week mode HOT 6
- Daily and weekly view with time-grid
- How to add calendar with one ics file per event? HOT 2
- Any way to fix this for period events? HOT 1
- cfw:open-ical-calendar hard-codes the color of the text
- Can not sync with Nextcloud calendar HOT 1
- Package cl deprecated HOT 1
- iCal: Event with "notifications" don't appear in output HOT 1
- Headline colors not diplayed correctly HOT 12
- Not showing deadline items HOT 1
- Can't open calendar buffer
- only one holiday is shown on a day with multiple holidays HOT 1
- Cannot use calfw with emacs 30 HOT 2
- Can cell-width be adjusted so that calendar expands to fill window. HOT 1
- Cannot run cfw:open-org-calendar: (wrong-type-argument stringp nil) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-calfw.