Skip to content

Instantly share code, notes, and snippets.

@shackra
Last active April 20, 2026 23:17
Show Gist options
  • Select an option

  • Save shackra/b94d7ba7540c6c26d2d351c420654098 to your computer and use it in GitHub Desktop.

Select an option

Save shackra/b94d7ba7540c6c26d2d351c420654098 to your computer and use it in GitHub Desktop.
My favorite dir-locals.el
;;; Directory Local Variables -*- no-byte-compile: t -*-
;;; For more information see (info "(emacs) Directory Variables")
((yaml-ts-mode . ((tab-width . 2)
(eglot-workspace-configuration
. (:yaml
(:format (:enable t)
:hover t
:completion t
:validate t
:schemaStore (
:enable t
:url "https://schemastore.org/api/json/catalog.json")
:schemas
(
:https\://spec.openapis.org/oas/3.1/schema/2025-09-15 "openapi.yaml" ;; for OpenAPI 3.1
:https\://taskfile.dev/schema.json "taskfile.yaml"
:https\://raw.githubusercontent.com/redhat-developer/vscode-tekton/refs/heads/main/scheme/tekton.dev/v1_Task.json
["tekton/**/*.task.yaml"
"tekton/tasks/*.yaml"
"Task.yaml"
"task.yaml"]
:https\://raw.githubusercontent.com/redhat-developer/vscode-tekton/refs/heads/main/scheme/tekton.dev/v1_TaskRun.json
["tekton/**/*.taskrun.yaml"
"tekton/taskrun/*.yaml"
"TaskRun.yaml"
"taskrun.yaml"]
:https\://raw.githubusercontent.com/redhat-developer/vscode-tekton/refs/heads/main/scheme/tekton.dev/v1_Pipeline.json
["tekton/**/*.pipeline.yaml"
"tekton/pipelines/*.yaml"
"Pipeline.yaml"
"pipeline.yaml"]
:https\://raw.githubusercontent.com/redhat-developer/vscode-tekton/refs/heads/main/scheme/tekton.dev/v1_PipelineRun.json
["tekton/**/*.pipelinerun.yaml"
"tekton/pipelinerun/*.yaml"
"PipelineRun.yaml"
"pipelinerun.yaml"])))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment