Title: Configuring major mode issue · Issue #79 · VSpaceCode/vspacecode.github.io · GitHub
Open Graph Title: Configuring major mode issue · Issue #79 · VSpaceCode/vspacecode.github.io
X Title: Configuring major mode issue · Issue #79 · VSpaceCode/vspacecode.github.io
Description: Hello, I read the docs but still have problems configuring major mode for python. I want to add keybinding: SPC m = u should run command ruff.executeFormat (only for python buffers). How do I do it? I tried different things eg: "whichkey...
Open Graph Description: Hello, I read the docs but still have problems configuring major mode for python. I want to add keybinding: SPC m = u should run command ruff.executeFormat (only for python buffers). How do I do it...
X Description: Hello, I read the docs but still have problems configuring major mode for python. I want to add keybinding: SPC m = u should run command ruff.executeFormat (only for python buffers). How do I do it...
Opengraph URL: https://github.com/VSpaceCode/vspacecode.github.io/issues/79
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Configuring major mode issue","articleBody":"Hello, I read the docs but still have problems configuring major mode for python. I want to add keybinding: `SPC m = u` should run command `ruff.executeFormat` (only for python buffers). How do I do it? I tried different things eg:\n```\n \"whichkey.bindingOverrides\": [\n {\n \"keys\": [\"m.=.u\", \"languageId:python\"],\n \"name\": \"Format\",\n \"type\": \"command\",\n \"command\": \"ruff.executeFormat\",\n }\n ],\n```\n\nor\n\n```\n \"whichkey.bindingOverrides\": [\n {\n \"keys\": [\"m\", \"languageId:python\", \"=\", \"u\"],\n \"name\": \"Ruff Format\",\n \"type\": \"command\",\n \"command\": \"ruff.executeFormat\",\n }\n ],\n```\nBut nothing works - the `u` / \"Ruff format\" is not shown in `SPC m =` submenu for python buffers.","author":{"url":"https://github.com/tkossak","@type":"Person","name":"tkossak"},"datePublished":"2025-04-08T10:23:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/79/vspacecode.github.io/issues/79"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b854f93f-9dea-a7e8-85a0-82d185be8a82 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C85E:2B2A66:BFE7B2:10CD70D:6970BC75 |
| html-safe-nonce | 2dba953684d7c5cd29ff5863af82fe1da62a2a3faff86ed3deddee5feaf9c665 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODVFOjJCMkE2NjpCRkU3QjI6MTBDRDcwRDo2OTcwQkM3NSIsInZpc2l0b3JfaWQiOiIxMzYxNTU3MjQ3OTUwMzcxOTU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f15429030a7f87b832c1b542131925aa672e1044b09c2a2a1ecaebf25828dcd9 |
| hovercard-subject-tag | issue:2979327961 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/VSpaceCode/vspacecode.github.io/79/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ca43d7e934b8288c31ef5c6fe05b0c64fb66a939f84dffe14a95242c52a1ab3/VSpaceCode/vspacecode.github.io/issues/79 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ca43d7e934b8288c31ef5c6fe05b0c64fb66a939f84dffe14a95242c52a1ab3/VSpaceCode/vspacecode.github.io/issues/79 |
| og:image:alt | Hello, I read the docs but still have problems configuring major mode for python. I want to add keybinding: SPC m = u should run command ruff.executeFormat (only for python buffers). How do I do it... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tkossak |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8e0be80373b724b033cdf8a7b1f78bf5fb6a5d7a2182a9a403aa30894606e390 |
| turbo-cache-control | no-preview |
| go-import | github.com/VSpaceCode/vspacecode.github.io git https://github.com/VSpaceCode/vspacecode.github.io.git |
| octolytics-dimension-user_id | 28670908 |
| octolytics-dimension-user_login | VSpaceCode |
| octolytics-dimension-repository_id | 292390726 |
| octolytics-dimension-repository_nwo | VSpaceCode/vspacecode.github.io |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 292390726 |
| octolytics-dimension-repository_network_root_nwo | VSpaceCode/vspacecode.github.io |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84d9d5bf3b01412ea10f7c2429cbfc735ccce9ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width