Soccer
is an Emacs package for getting fixtures, results, standing table, scorecard etc for soccer (football) matches inside emacs. By default, the following leagues are included
- Premier League (England)
- La Liga (Spain)
- Ligue 1 (France)
- Bundesliga (Germany)
- Serie A (Italy)
- Championship (England)
and Adding new leagues or removing one from the default list is really easy, see Adding new leagues. All data are fetched from scorespro
website.
It’s available in Melpa. Look here for instruction. One can also install it using straight
and use-package
(use-package soccer
:straight (soccer :type git :host github :repo "md-arif-shaikh/soccer"))
To get the time and match day converted to your local time configure the following
(setq soccer-time-local-time-utc-offset "+0530")
Additionally you may want to make some keybindings to call the interactive functions conveniently. For example, using use-package
this can be done like below,
(use-package soccer
:straight t
:config
(setq soccer-time-local-time-utc-offset "+0530")
:bind (("C-c s f" . soccer-fixtures-next)
("C-c s r" . soccer-results-last)
("C-c s s" . soccer-scorecard)
("C-c s t" . soccer-table)))
This will fetch and install the package from Melpa
, set your local utc-offset
and set the above keybindings.
You can add a new league or remove a league by modifying the variable soccer-leagues-alist
either in your init
file or using the customization method in Emacs
(M-x customize-variable
Enter
soccer-leagues-alist
Enter
). Inside init
file the variable soccer-leagues-alist
could be configured in the following way
(setq soccer-leagues-alist
'(("England" . "Premier League")
("Spain" . "Laliga")
("France" . "Ligue 1")
("Italy" . "Serie A")
("Germany" . "Bundesliga")
("England" . "Championship")))
(use-package soccer
:straight (soccer :type git :host github :repo "md-arif-shaikh/soccer")
:init
(setq soccer-leagues-alist
'(("England" . "Premier League")
("Spain" . "Laliga")
("France" . "Ligue 1")
("Italy" . "Serie A")
("Germany" . "Bundesliga")
;;("uefa" . "Champions League")
;;("England" . "Championship")
))
:config
(setq soccer-time-local-time-utc-offset "+0530")
:bind (("C-c s f" . soccer-fixtures-next)
("C-c s r" . soccer-results-last)
("C-c s s" . soccer-scorecard)
("C-c s t" . soccer-table)))
Call these using M-x Function
where Function
is any of the following functions
Functions | Actions |
soccer-fixtures-next | Fixture for the Next match |
soccer-fixtures-next-5 | Fixtures of the Next 5 matches |
soccer-fixtures-full-in-org | Full fixtures saved in org file |
soccer-fixtures-all-clubs | Fixtures for all clubs in a league |
soccer-results-last | Result of the last match |
soccer-results-last-5 | Results of the last 5 matches |
soccer-results-full-in-org | Full list of results in org file |
soccer-results-all-clubs | Results for all clubs in a league |
soccer-table | Full Ranking table |
soccer-table-top-4 | Rank table with top 4 teams |
soccer-table-bottom-4 | Rank table with bottom 4 teams |
soccer-scorecard | Scorecard |