{"id":16935635,"url":"https://github.com/knu/emacsc","last_synced_at":"2025-03-22T12:31:48.719Z","repository":{"id":6507082,"uuid":"7747707","full_name":"knu/emacsc","owner":"knu","description":"Emacs as a command line tool","archived":false,"fork":false,"pushed_at":"2024-12-06T05:59:21.000Z","size":62,"stargazers_count":19,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T11:05:58.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-01-22T07:05:24.000Z","updated_at":"2025-01-06T21:38:30.000Z","dependencies_parsed_at":"2024-06-29T14:23:44.972Z","dependency_job_id":null,"html_url":"https://github.com/knu/emacsc","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Femacsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Femacsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Femacsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Femacsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knu","download_url":"https://codeload.github.com/knu/emacsc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244959442,"owners_count":20538625,"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-10-13T20:54:58.527Z","updated_at":"2025-03-22T12:31:48.702Z","avatar_url":"https://github.com/knu.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emacs as a command line tool\n\n## emacsc(1)\n\nEmacsc(1) is a wrapper of emacsclient(1) for use within a terminal,\nwhich helps use Emacs more as command line tool than just a standalone\nenvironment.\n\n    usage: emacsc [-cdgkn] [-s NAME] [-e EXPR | -x EXPR | -f FUNC] [-C DIR] [FILE..]\n\n        -h, --help      show this help\n        -d, --daemon    run Emacs as daemon and quit\n        -k, --kill      kill Emacs daemon\n        -g, --no-tty    do not prefer tty\n        -c, --create-frame\n                        create a new frame\n        -n, --no-wait\n                        do not wait and return immediately\n        -s, --socket-name=NAME\n                        specify the file name of the socket file name for\n                        communication\n        -e, --eval=EXPR\n                        evaluate the Lisp expression EXPR and print the\n                        result without a frame opened\n        -x, --execute=EXPR\n                        interactively execute the Lisp expression EXPR\n        -f, --funcall=FUNC\n                        interactively call the Lisp function FUNC\n        -C, --chdir, --directory=DIR\n                        change to directory DIR before running code\n\nThis command is a wrapper of emacsclient for use within a terminal.\nIt adds the -t option so that Emacs opens a new frame on the current\nterminal, making the command itself suitable as a value for EDITOR.\n\nA byte-compiled initialization file is automatically removed before\nrunning Emacs if outdated, i.e. older than the original file.\n\nIn order for the -x and -f options, and the following commands to\nwork, install lisp/emacsc.el into a directory in your load-path and\nadd this to your ~/.emacs.d/init.el:\n\n    (require 'emacsc)\n\nOr install emacsc from an ELPA package and you are good to go.\n\n## dired(1)\n\nDired(1) is a frontend command to invoke dired.\n\n    usage: dired [-n] [directory|file]\n\n        -n, --no-wait   do not wait and return immediately\n\nIt takes a directory or a file name, defaulted to the current\ndirectory, to open with dired.  If a non-directory is given, the point\nwill be automatically moved to the file on startup.\n\n## ediff(1), ediff-merge(1)\n\nEdiff(1) and ediff-merge(1) are frontend commands to invoke ediff\nfunctions.\n\n    usage: ediff file1 file2\n\n    usage: ediff-merge local remote base merged\n           ediff-merge local remote merged\n\nTo use them from Git, put the following lines in your\n~/.config/git/config (or ~/.gitconfig).\n\n    [diff]\n        tool = ediff\n    [difftool \"ediff\"]\n        cmd = ediff \\\"$LOCAL\\\" \\\"$REMOTE\\\"\n    [merge]\n        tool = ediff\n    [mergetool \"ediff\"]\n        cmd = ediff-merge \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$BASE\\\" \\\"$MERGED\\\"\n        trustExitCode = true\n\n## evil(1)\n\nEvil(1) is a command to edit given files in evil-local-mode.\n\n    usage: evil [-s NAME] FILE..\n\n        -h, --help      show this help\n        -s, --socket-name=NAME\n                        specify the file name of the socket file name for\n                        communication\n\n## magit(1)\n\nMagit(1) is a frontend command to invoke magit-status.\n\n    usage: magit [directory]\n\nIt runs magit-status on a given directory.  If omitted, ask where with\nthe current directory as default.\n\n## SEE ALSO\n\n- [e(1) - a smart wrapper for $EDITOR](https://github.com/knu/e)\n\n## AUTHOR\n\nCopyright (c) 2012-2024 Akinori MUSHA.\n\nLicensed under the 2-clause BSD license.  See `LICENSE.txt` for\ndetails.\n\nVisit [GitHub Repository](https://github.com/knu/emacsc) for the latest\ninformation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Femacsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknu%2Femacsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Femacsc/lists"}