Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/purcell/cl-libify
Update elisp code to use cl-lib instead of cl
https://github.com/purcell/cl-libify
Last synced: about 2 months ago
JSON representation
Update elisp code to use cl-lib instead of cl
- Host: GitHub
- URL: https://github.com/purcell/cl-libify
- Owner: purcell
- Created: 2018-11-29T03:51:17.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T07:15:52.000Z (3 months ago)
- Last Synced: 2024-11-07T08:23:28.183Z (3 months ago)
- Language: Emacs Lisp
- Size: 3.91 KB
- Stars: 12
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Melpa Status](http://melpa.org/packages/cl-libify-badge.svg)](http://melpa.org/#/cl-libify)
[![Melpa Stable Status](http://stable.melpa.org/packages/cl-libify-badge.svg)](http://stable.melpa.org/#/cl-libify)# Update Emacs Lisp code to use cl-lib instead of cl
`cl` is a deprecated library, and elisp authors should use `cl-lib`
instead. In most cases, this is a matter of requiring "cl-lib" and
adding a "cl-" prefix to symbols that came from "cl".This library provides an interactive command, `cl-libify`, which
replaces usages of "cl" symbols with their "cl-lib" equivalent,
optionally prompting for eachNote that some cl functions do not have exact replacements,
e.g. `flet`, so further code changes might still be necessary.You can also use `cl-libify-mark-cl-symbols-obsolete` to mark old `cl`
names as obsolete, so that the byte compiler will help flag their use.## Installation
### Manual
Ensure `cl-libify.el` is in a directory on your load-path, and
add the following to your `~/.emacs` or `~/.emacs.d/init.el`:```elisp
(require 'cl-libify)
```### MELPA
If you're an Emacs 24 user or you have a recent version of
`package.el` you can install `cl-libify` from the
[MELPA](http://melpa.org) repository. The version of
`cl-libify` there will always be up-to-date.See the command `cl-libify`.
## About
Author: Steve Purcell
Homepage: https://github.com/purcell/cl-libify
This little library was extracted from the author's
[full Emacs configuration](https://github.com/purcell/emacs.d), which
readers might find of interest.
[💝 Support this project and my other Open Source work](https://www.patreon.com/sanityinc)
[💼 LinkedIn profile](https://uk.linkedin.com/in/stevepurcell)
[✍ sanityinc.com](http://www.sanityinc.com/)