{"action":"created","issue":{"url":"https://api.github.com/repos/joaotavora/yasnippet/issues/963","repository_url":"https://api.github.com/repos/joaotavora/yasnippet","labels_url":"https://api.github.com/repos/joaotavora/yasnippet/issues/963/labels{/name}","comments_url":"https://api.github.com/repos/joaotavora/yasnippet/issues/963/comments","events_url":"https://api.github.com/repos/joaotavora/yasnippet/issues/963/events","html_url":"https://github.com/joaotavora/yasnippet/issues/963","id":369641045,"node_id":"MDU6SXNzdWUzNjk2NDEwNDU=","number":963,"title":"Auto yas-expand Mode for Different Modes?","user":{"login":"Dentrax","id":16493751,"node_id":"MDQ6VXNlcjE2NDkzNzUx","avatar_url":"https://avatars3.githubusercontent.com/u/16493751?v=4","gravatar_id":"","url":"https://api.github.com/users/Dentrax","html_url":"https://github.com/Dentrax","followers_url":"https://api.github.com/users/Dentrax/followers","following_url":"https://api.github.com/users/Dentrax/following{/other_user}","gists_url":"https://api.github.com/users/Dentrax/gists{/gist_id}","starred_url":"https://api.github.com/users/Dentrax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dentrax/subscriptions","organizations_url":"https://api.github.com/users/Dentrax/orgs","repos_url":"https://api.github.com/users/Dentrax/repos","events_url":"https://api.github.com/users/Dentrax/events{/privacy}","received_events_url":"https://api.github.com/users/Dentrax/received_events","type":"User","site_admin":false},"labels":[{"id":38552413,"node_id":"MDU6TGFiZWwzODU1MjQxMw==","url":"https://api.github.com/repos/joaotavora/yasnippet/labels/need%20clarification","name":"need clarification","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-10-12T17:25:03Z","updated_at":"2018-10-28T21:04:02Z","closed_at":null,"author_association":"NONE","body":"I just created a few snippets for go-mode. When I type `for` or `func` command and press <kbd>TAB</kbd> key, auto-expand mode won't works. I always have to enter these commands:\r\n\r\n```\r\nM-x yas-minor-mode\r\nM-x yas-reload-all\r\n```\r\nI don't want to enter through these commands every time. Exactly what I request:\r\n\r\n- When the `.go` file is opened, the snippets in the `go-mode` folder should be automatically load and be active. For other modes, snippets should be turned off automatically.\r\n\r\n- When the `.py` file is opened, the snippets in the `python-mode` folder should be automatically load and be active. For other modes, snippets should be turned off automatically.\r\n\r\nHow can i do that? Thanks!"},"comment":{"url":"https://api.github.com/repos/joaotavora/yasnippet/issues/comments/433741236","html_url":"https://github.com/joaotavora/yasnippet/issues/963#issuecomment-433741236","issue_url":"https://api.github.com/repos/joaotavora/yasnippet/issues/963","id":433741236,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzc0MTIzNg==","user":{"login":"npostavs","id":287742,"node_id":"MDQ6VXNlcjI4Nzc0Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/287742?v=4","gravatar_id":"","url":"https://api.github.com/users/npostavs","html_url":"https://github.com/npostavs","followers_url":"https://api.github.com/users/npostavs/followers","following_url":"https://api.github.com/users/npostavs/following{/other_user}","gists_url":"https://api.github.com/users/npostavs/gists{/gist_id}","starred_url":"https://api.github.com/users/npostavs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npostavs/subscriptions","organizations_url":"https://api.github.com/users/npostavs/orgs","repos_url":"https://api.github.com/users/npostavs/repos","events_url":"https://api.github.com/users/npostavs/events{/privacy}","received_events_url":"https://api.github.com/users/npostavs/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T21:04:02Z","updated_at":"2018-10-28T21:04:02Z","author_association":"COLLABORATOR","body":"Can you put this at the top of your init file, restart Emacs again, open a C++ file, and show the contents of `*trace-output*`?\r\n```elisp\r\n(dolist (fun '(yas-load-directory\r\n               yas--load-directory-1\r\n               yas--load-directory-2\r\n               yas--load-snippet-dirs\r\n               yas-reload-all\r\n               yas--load-pending-jits))\r\n  (trace-function fun))\r\n```"}}
{"actor":{"display_login":"npostavs"}}