{"id":19557858,"url":"https://github.com/sanel/magic-ed","last_synced_at":"2025-02-26T08:16:29.240Z","repository":{"id":7319267,"uuid":"8637872","full_name":"sanel/magic-ed","owner":"sanel","description":"Editing facility for Common Lisp REPL","archived":false,"fork":false,"pushed_at":"2020-02-24T15:52:40.000Z","size":25,"stargazers_count":24,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-08T21:57:53.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-07T22:21:04.000Z","updated_at":"2024-06-04T00:57:34.000Z","dependencies_parsed_at":"2022-08-24T19:10:46.720Z","dependency_job_id":null,"html_url":"https://github.com/sanel/magic-ed","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanel%2Fmagic-ed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanel%2Fmagic-ed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanel%2Fmagic-ed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanel%2Fmagic-ed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanel","download_url":"https://codeload.github.com/sanel/magic-ed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240814864,"owners_count":19861958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T04:44:16.925Z","updated_at":"2025-02-26T08:16:29.164Z","avatar_url":"https://github.com/sanel.png","language":"Common Lisp","readme":"# Magic (ed)\n\n*Magic (ed)* is a tiny editing facility for Common Lisp, where you can\ndirectly load, edit, manipulate and evaluate file or file content from\n[REPL](http://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop_).\n\nI find myself often running the REPL for various things but lazy enough to\nengage Emacs/SLIME when I need just a small edit: I'm a UNIX guy\nand I got used to start vi/vim/emacsclient for writing small\nthrow-away programs.\n\nThis package also can be a starting point for people who are not\naccustomed to Emacs or SLIME and would like to continue using their\ndefault terminal/console editor with Common Lisp.\n\n## Quickinstall and start\nInstall via [Quicklisp](http://www.quicklisp.org), which updates distro about once a month.\n```lisp\n(ql:quickload \"magic-ed\")\n```\nFor simple editing from the REPL, launch your system configured EDitor\n```lisp\n(ed \"file-name.lisp\")\n````\n\nFor the daily updates track, install via Ultralisp. You can also install manually.\nSee instructions for other installation options and use below. \n\n## Usage\n\nYou start it with:\n\n```lisp\n(magic-ed:magic-ed \"/tmp/test.lisp\")\n```\n\nand it will start editor assigned to *EDITOR* environment\nvariable. When you are done with editing, save it and quit: *magic-ed*\nwill load that file and evaluate it. If file saving somehow failed, nothing\nwill be evaluated. \n\nIn background, *magic-ed* will try to use *(ed)* standard function and\nwill try to obey implementation specific features. For example, in\nSBCL, if *sb-ext:\\*ed-functions** was set, *magic-ed* will not use\nenvironment value.\n\nIf you do not want edited file to be evaluated, you use **:eval** parameter\nlike:\n\n```lisp\n(magic-ed:magic-ed \"/tmp/test.lisp\" :eval nil)\n```\n\nand file will be only saved. Also, if you would like file content to\nbe returned as escaped string, use **:output** parameter (accepts only\n*:file* and *:string*):\n\n```lisp\n(setf content (magic-ed:magic-ed \"/tmp/test.lisp\" :output :string))\n```\n\n## Installation options \n\nFirst setup *EDITOR* environment variable to point to your favorite\neditor (on *nix, often nano or vi, distribution dependent config and change) \nand download magic-ed code via Quicklisp, Ultralisp, or manually \n(clone it from this repository).\n\n###  Ultralisp via Quicklisp \n\nMagic-ed is [available](https://ultralisp.org/projects/sanel/magic-ed) on Ultralisp. \nUltralisp updates more often than Quicklisp, so this install is recommended. \n\nInstall [Quicklisp](http://www.quicklisp.org), install [Ultralisp](https://ultralisp.org/).\nThen use the standard Quicklisp installation method. \n\n### Manual download or via Quicklisp\n\nDo an update of the QL database and install:\n\n```lisp\n(ql:update-dist \"quicklisp\")\n(ql:quickload \"magic-ed\")\n```\n### ASDF \n\n```lisp\n(asdf:load-system :magic-ed)\n```\nManual install:\n\n\nDownload or git clone magic-ed to Your quicklisp directory manually  \n( usually ~/quicklisp/local-projects/ )\n\nFor example, execute in terminal:\n\n```bash\ncd ~/quicklisp/local-projects/\n\ngit clone https://github.com/sanel/magic-ed \n```\n\nThen, launch Your Common Lisp of choice and in the REPL: \n\n```lisp\n(ql:quickload :magic-ed)\n```\n\n### Automatic loading on REPL start with Quicklisp\n\nUpdate Your Common Lisp configuration, adding the following line \nto the same file responcible for loading quicklisp on start.\n\nIn SBCL: edit Your ~/.sbclrc and add to the end, after ql lines:\n\n```lisp\n(ql:quickload :magic-ed)\n```\n\n## Compatibility \nThe magic-ed code was tested on SBCL, ECL, Clozure CL and CMUCL.\n## License\n\nCopyright (c) 2013-2020 Sanel Zukan. You can use this code however you\nlike, in accordance with the MIT license. \n","funding_links":[],"categories":["REPLs ##"],"sub_categories":["Third-party APIs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanel%2Fmagic-ed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanel%2Fmagic-ed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanel%2Fmagic-ed/lists"}