{"id":13861764,"url":"https://github.com/davidshepherd7/fill-function-arguments","last_synced_at":"2025-09-18T17:31:27.626Z","repository":{"id":55517237,"uuid":"56908894","full_name":"davidshepherd7/fill-function-arguments","owner":"davidshepherd7","description":"An emacs package to add/remove line breaks between function arguments and similar constructs","archived":false,"fork":false,"pushed_at":"2024-02-13T22:52:39.000Z","size":56,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T23:33:03.231Z","etag":null,"topics":["autoformat","emacs","formatter"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidshepherd7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-04-23T08:29:37.000Z","updated_at":"2025-03-10T15:28:07.000Z","dependencies_parsed_at":"2024-02-13T23:46:57.378Z","dependency_job_id":null,"html_url":"https://github.com/davidshepherd7/fill-function-arguments","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/davidshepherd7/fill-function-arguments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidshepherd7%2Ffill-function-arguments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidshepherd7%2Ffill-function-arguments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidshepherd7%2Ffill-function-arguments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidshepherd7%2Ffill-function-arguments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidshepherd7","download_url":"https://codeload.github.com/davidshepherd7/fill-function-arguments/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidshepherd7%2Ffill-function-arguments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275804660,"owners_count":25531726,"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","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["autoformat","emacs","formatter"],"created_at":"2024-08-05T06:01:29.720Z","updated_at":"2025-09-18T17:31:27.330Z","avatar_url":"https://github.com/davidshepherd7.png","language":"Emacs Lisp","readme":"# fill-function-arguments\nAdd/remove line breaks between function arguments and similar constructs\n\n[![actions](https://github.com/davidshepherd7/fill-function-arguments/workflows/CI/badge.svg)](https://github.com/davidshepherd7/fill-function-arguments/actions)\n[![MELPA](https://melpa.org/packages/fill-function-arguments-badge.svg)](https://melpa.org/#/fill-function-arguments)\n[![MELPA stable](http://stable.melpa.org/packages/fill-function-arguments-badge.svg)](http://stable.melpa.org/#/fill-function-arguments)\n\n# Usage\n\nPut point inside the brackets and call `fill-function-arguments-dwim` to convert\n\n    frobinate_foos(bar, baz, a_long_argument_just_for_fun, get_value(x, y))\n\nto\n    \n    frobinate_foos(\n        bar,\n        baz,\n        a_long_argument_just_for_fun,\n        get_value(x, y)\n    )\n    \nand back.\n\nAlso works with arrays (`[x, y, z]`) and dictionary literals (`{a: b, c: 1}`).\n\nIf no function call is found `fill-function-arguments-dwim` will call `fill-paragraph`, \nso you can replace an existing `fill-paragraph` keybinding with it.\n\nRecommended binding:\n\n    (add-hook 'prog-mode-hook (lambda () (local-set-key (kbd \"M-q\") #'fill-function-arguments-dwim)))\n\n(note: some modes, e.g. C-derived modes, bind their own fill paragraph function which will override this so for those modes you'll need to bind the key in that specific mode).\n\nAlso works well with html/xml tags with some customisation:\n\n    (add-hook 'sgml-mode-hook (lambda ()\n                              (setq-local fill-function-arguments-first-argument-same-line t)\n                              (setq-local fill-function-arguments-argument-sep \" \")\n                              (local-set-key (kbd \"M-q\") #'fill-function-arguments-dwim)))\n\nAnd for lisps:\n\n    (add-hook 'emacs-lisp-mode-hook (lambda ()\n                                      (setq-local fill-function-arguments-first-argument-same-line t)\n                                      (setq-local fill-function-arguments-second-argument-same-line t)\n                                      (setq-local fill-function-arguments-last-argument-same-line t)\n                                      (setq-local fill-function-arguments-argument-separator \" \")))\n\n\nBy default fill function arguments does not fix the indentation for you (I use\n[aggressive-indent-mode](https://github.com/Malabarba/aggressive-indent-mode)\nfor this). You can enable automatic indentation after converting to the\nmultiline form by setting `fill-function-arguments-indent-after-fill` to `t`.\n\n# Changelog\n\n## Unstable\n\n* Fix not passing along interactive arguments to fill-paragraph.\n\n# Related\n\nThis is effectively the emacs version of\n[vim-argwrap](https://github.com/FooSoft/vim-argwrap), although it was developed\ncompletely independently.\n","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidshepherd7%2Ffill-function-arguments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidshepherd7%2Ffill-function-arguments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidshepherd7%2Ffill-function-arguments/lists"}