{"id":28492503,"url":"https://github.com/abougouffa/emacs-vim-file-locals","last_synced_at":"2026-03-06T10:05:44.237Z","repository":{"id":297118203,"uuid":"995717183","full_name":"abougouffa/emacs-vim-file-locals","owner":"abougouffa","description":"Set Emacs editor options from Vim modeline","archived":false,"fork":false,"pushed_at":"2025-07-25T21:59:01.000Z","size":76,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-26T22:26:30.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/abougouffa.png","metadata":{"files":{"readme":"README.org","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-03T22:59:22.000Z","updated_at":"2025-07-25T21:59:05.000Z","dependencies_parsed_at":"2025-10-10T05:53:51.893Z","dependency_job_id":"c2091f9e-3bd5-4793-9323-38cb4a09cb28","html_url":"https://github.com/abougouffa/emacs-vim-file-locals","commit_stats":null,"previous_names":["abougouffa/vim-modelines","abougouffa/emacs-vim-file-locals"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/abougouffa/emacs-vim-file-locals","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abougouffa%2Femacs-vim-file-locals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abougouffa%2Femacs-vim-file-locals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abougouffa%2Femacs-vim-file-locals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abougouffa%2Femacs-vim-file-locals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abougouffa","download_url":"https://codeload.github.com/abougouffa/emacs-vim-file-locals/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abougouffa%2Femacs-vim-file-locals/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30171657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-06-08T08:30:26.683Z","updated_at":"2026-03-06T10:05:44.211Z","avatar_url":"https://github.com/abougouffa.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"* vim-file-locals\n\nThis is an Emacs package that adds support for Vim's modelines. =vim-file-locals=\nis inspired by [[https://github.com/cinsk/emacs-vim-modeline][vim-modeline]], but supports more Vim modelines and makes use of\n=editorconfig= to set some mode-specific options.\n\nWhen you open a file that includes Vim's modelines, =vim-file-locals= ensures\napplying the right Emacs options that matches the modelines' ones.\n\nFor example, when we open a file containing this line at the beginning/end of\nthe file:\n\n#+begin_src elisp\n;; -- Elisp\n;; vim: set ts=8 tw=120 ft=el:\n#+end_src\n\n=vim-file-locals= will parse the line and set =fill-column= to 120, =tab-width= to 8\nand it will set the mode to =emacs-lisp-mode= (based on the =el=, which is\ninterpreted by =vim-file-locals= as a file extension or a mode name).\n\nSupported Vim modeline options are:\n\n| Modeline options                          |\n|-------------------------------------------|\n| =filetype= =ft=                               |\n| =syntax= =syn=                                |\n| =shiftwidth= =sw=                             |\n| =textwidth= =tw=                              |\n| =tabstop= =ts=                                |\n| =softtabstop= =sts=                           |\n| =encoding= =enc=                              |\n| =fileencoding= =fenc=                         |\n| =fileformat= =ff=                             |\n| =readonly= =ro=                               |\n| =modifiable= =ma=                             |\n| =number= =nu= =nonumber= =nonu=                   |\n| =expandtab= =et= =noexpandtab= =noet=             |\n| =linebreak= =lbr= =nolinebreak= =nolbr=           |\n| =smartindent= =si= =nosmartindent= =nosi=         |\n| =autoindent= =ai= =noautoindent= =noai=           |\n| =relativenumber= =rnu= =norelativenumber= =nornu= |\n|-------------------------------------------|\n\n** Installation\nUsing Emacs' 30+ built-in =use-package='s =:vc= keyword:\n\n#+begin_src elisp\n(use-package vim-file-locals\n  :vc (:url \"https://github.com/abougouffa/emacs-vim-file-locals\" :rev :newest)\n  :hook (after-init . vim-file-locals-mode))\n#+end_src\n\nOr, using the =straight= package:\n\n#+begin_src elisp\n(use-package vim-file-locals\n  :straight (:host github :repo \"abougouffa/emacs-vim-file-locals\")\n  :hook (after-init . vim-file-locals-mode))\n#+end_src\n\nIf you don't want to enable =vim-file-locals-mode= globally, you can use the =M-x\nvim-file-locals-apply= command to extract and apply VIM's modeline options from\nthe current buffer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabougouffa%2Femacs-vim-file-locals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabougouffa%2Femacs-vim-file-locals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabougouffa%2Femacs-vim-file-locals/lists"}