{"id":13862557,"url":"https://github.com/zk-phi/electric-spacing","last_synced_at":"2025-04-14T13:04:22.411Z","repository":{"id":17626724,"uuid":"20430969","full_name":"zk-phi/electric-spacing","owner":"zk-phi","description":"Insert spaces automatically between user-defined patterns","archived":false,"fork":false,"pushed_at":"2021-02-28T17:45:38.000Z","size":561,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-05T06:06:02.596Z","etag":null,"topics":["emacs"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zk-phi.png","metadata":{"files":{"readme":"Readme.org","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}},"created_at":"2014-06-03T05:36:16.000Z","updated_at":"2022-01-14T14:37:31.000Z","dependencies_parsed_at":"2022-09-12T03:10:20.471Z","dependency_job_id":null,"html_url":"https://github.com/zk-phi/electric-spacing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-phi%2Felectric-spacing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-phi%2Felectric-spacing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-phi%2Felectric-spacing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-phi%2Felectric-spacing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zk-phi","download_url":"https://codeload.github.com/zk-phi/electric-spacing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223634002,"owners_count":17176871,"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":["emacs"],"created_at":"2024-08-05T06:01:47.337Z","updated_at":"2024-11-08T04:35:06.359Z","avatar_url":"https://github.com/zk-phi.png","language":"Emacs Lisp","readme":"* electric-spacing.el\n\n空白の自動挿入\n\ninsert spaces automatically between user-defined patterns\n\n** Screencast\n\n[[screencast.gif]]\n\n** Installation\n\n\nRequire this script\n\n: (require 'electric-spacing)\n\nand you may enable electric-spacing-mode with =M-x\nelectric-spacing-mode=. Loading the mode in major-mode-hooks may also\nbe useful.\n\n: (add-hook 'org-mode-hook 'electric-spacing-mode)\n\n** Defining Patterns\n\nYou may define a pattern where whitespaces should be inserted, by\nadding a regexp-pair to =electric-spacing-regexp-pairs=. For example,\nfollowing setting inserts spaces between Japanese and English\ncharacters like: =foo ほげ bar ふが=\n\n#+begin_src emacs-lisp\n  (add-to-list 'electric-spacing-regexp-pairs\n               '(\"\\\\cA\\\\|\\\\cC\\\\|\\\\ck\\\\|\\\\cK\\\\|\\\\cH\" . \"[0-9A-Za-z]\"))\n  (add-to-list 'electric-spacing-regexp-pairs\n               '(\"[0-9A-Za-z]\" . \"\\\\cA\\\\|\\\\cC\\\\|\\\\ck\\\\|\\\\cK\\\\|\\\\cH\"))\n#+end_src\n\nYou may define a buffer-local pattern by making\n=electric-spacing-regexp-pairs= buffer-local before registering the\npattern.\n\n: (make-local-variable 'electric-spacing-regexp-pairs)\n","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk-phi%2Felectric-spacing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzk-phi%2Felectric-spacing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk-phi%2Felectric-spacing/lists"}