{"id":13338357,"url":"https://github.com/MooersLab/emacs30macos13treesitter","last_synced_at":"2025-03-11T09:30:58.300Z","repository":{"id":165234126,"uuid":"599146991","full_name":"MooersLab/emacs30macos13treesitter","owner":"MooersLab","description":"Compile emacs30 on macOS 13.2 with support for using tree-sitter","archived":false,"fork":false,"pushed_at":"2024-03-27T02:50:17.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T03:42:00.425Z","etag":null,"topics":["combobulate","compile","concrete-syntax-tree","emacs","emacs30","macos","tree-sitter","ventura"],"latest_commit_sha":null,"homepage":"","language":null,"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/MooersLab.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-08T14:52:30.000Z","updated_at":"2023-02-08T15:26:52.000Z","dependencies_parsed_at":"2024-03-27T03:24:21.015Z","dependency_job_id":"26b46c5c-6316-48f1-aa2d-a5581c936760","html_url":"https://github.com/MooersLab/emacs30macos13treesitter","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/MooersLab%2Femacs30macos13treesitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MooersLab%2Femacs30macos13treesitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MooersLab%2Femacs30macos13treesitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MooersLab%2Femacs30macos13treesitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MooersLab","download_url":"https://codeload.github.com/MooersLab/emacs30macos13treesitter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243007037,"owners_count":20220762,"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":["combobulate","compile","concrete-syntax-tree","emacs","emacs30","macos","tree-sitter","ventura"],"created_at":"2024-07-29T19:16:18.130Z","updated_at":"2025-03-11T09:30:57.865Z","avatar_url":"https://github.com/MooersLab.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"![Version](https://img.shields.io/static/v1?label=emacs30macos13treesitter\u0026message=0.1\u0026color=brightcolor)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n# Compiling Emacs30 on Ventura (macOS 13.2) with support for tree-sitter\n\nThe C-library [tree-sitter](https://tree-sitter.github.io/tree-sitter/) supports the use of the concrete syntax tree during the editing of code.\nThis library eases the editing of computer code.\nThere is even support for editing LaTeX, Markdown, Org, and reStructuredText.\nTree-sitter is being deployed by other major text editors, such as [NeoVim](https://github.com/nvim-treesitter/nvim-treesitter) and [VSCode](https://github.com/georgewfraser/vscode-tree-sitter).\n\n## Prerequisites\nYou must install the tree-sitter C library before compiling Emacs.\nThe [emacs-tree-sitter.el](https://github.com/emacs-tree-sitter/elisp-tree-sitter) package is built into Emacs 29 and 30 but not the C library.\nI installed the tree-sitter C library, gnutils, and imagemagick with macports.\nThe export of giflib could probably have been mapped to the giflib in macports.\nThis protocol worked on a 2017 Mac workstation and a 2018 MacBook Pro with Mac OS 13.2.\n\n## Compile protocol\n\n```bash\ncd ~/software\ngit clone git://git.sv.gnu.org/emacs emacs30\ncd emacs30\ngit checkout -b emacs29\nexport LDFLAGS=-L/usr/local/Cellar/giflib/5.2.1/lib\n./autogen.sh\nmkdir build\ncd build\n../configure --with-gnutls=ifavailable --with-cairo --with-tree-sitter --with-imagemagick --program-suffix=30 --prefix=/Users/blaine/bin\n# Use 8 processors to speed up make.\nmake -j8\nmake install -j8\n# Note that the install did not go quite as planned: Nothing appeared in ~/bin. I resolved the problem by the next steps.\ncd nextstep\ncp -R Emacs.app /Applications/Emacs30.0.5tree-sitter.app\n# Make a profile directory\nmkdir ~/latex-tree-emacs30\n# I stored this alias in a .bashAppAliases file that I source fromm my .zshrc file.\nalias e30ltd='/Applications/Emacs30.0.5tree-sitter.app/Contents/MacOS/Emacs --init-directory ~/latex-tree-emacs30 --debug-init'\ne30ltd # Emacs should fire up.\nC-h v\n# enter at the : prompt\nsystem-configuration-features RET\n```\n\n## Check for tree_sitter\n\nThe entry of RETURN on the last line of the code listing above will return the following list of features that were compiled with Emacs.\nThis list may appear is a separate buffer.\nNote the presence of `TREE_SITTER`.\n\n```bash\n\"ACL DBUS GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB\"\n```\nThe list of features differed somewhat between my two computers because the laptop has more software in macports.\n\n## Notes\n\nCompiling C-programs on macOS can be a nightmare if you have redundant software package managers installed, and you are not an expert C programmer.\nI am only a novice.\nI had installed macports, homebrew, and anaconda.\nXcode and the associated command line tools can sometimes muddy the waters further via the misplacement of some of the libraries. \nThe `make` program often fails to find a required library, even though it may be present.\nIn my case, I had to specify the location of one library file with an export command for the make to finish successfully.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMooersLab%2Femacs30macos13treesitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMooersLab%2Femacs30macos13treesitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMooersLab%2Femacs30macos13treesitter/lists"}