{"action":"created","issue":{"url":"https://api.github.com/repos/capitaomorte/yasnippet/issues/692","repository_url":"https://api.github.com/repos/capitaomorte/yasnippet","labels_url":"https://api.github.com/repos/capitaomorte/yasnippet/issues/692/labels{/name}","comments_url":"https://api.github.com/repos/capitaomorte/yasnippet/issues/692/comments","events_url":"https://api.github.com/repos/capitaomorte/yasnippet/issues/692/events","html_url":"https://github.com/capitaomorte/yasnippet/issues/692","id":153931874,"number":692,"title":"How to associate custom snippets to a particular mode?","user":{"login":"astoeckley","id":4611759,"avatar_url":"https://avatars.githubusercontent.com/u/4611759?v=3","gravatar_id":"","url":"https://api.github.com/users/astoeckley","html_url":"https://github.com/astoeckley","followers_url":"https://api.github.com/users/astoeckley/followers","following_url":"https://api.github.com/users/astoeckley/following{/other_user}","gists_url":"https://api.github.com/users/astoeckley/gists{/gist_id}","starred_url":"https://api.github.com/users/astoeckley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astoeckley/subscriptions","organizations_url":"https://api.github.com/users/astoeckley/orgs","repos_url":"https://api.github.com/users/astoeckley/repos","events_url":"https://api.github.com/users/astoeckley/events{/privacy}","received_events_url":"https://api.github.com/users/astoeckley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-10T06:21:22Z","updated_at":"2016-05-10T07:38:14Z","closed_at":"2016-05-10T06:38:06Z","body":"The front page says this:\r\n\r\n> Add your own snippets to ~/.emacs.d/snippets by placing files there or invoking yas-new-snippet.\r\n\r\nFor me, `yas-new-snippet` does not automatically save the file anywhere. I have to save it directly in emacs, as a normal file.\r\n\r\nAfter they are saved to this directory, they are then not available on relaunch of emacs. How can I make them automatically get loaded either globally or for a particular mode?\r\n\r\nThe workaround would be for me to save them directly to one of the specific mode directories, but I'm trying to follow the front page's suggestion and save them in this general snippets dir.\r\n\r\nI have this in my init.el:\r\n```\r\n\r\n(setq yas-snippet-dirs '(\r\n                         \"~/.emacs.d/snippets\"\r\n                         ))\r\n```"},"comment":{"url":"https://api.github.com/repos/capitaomorte/yasnippet/issues/comments/218081417","html_url":"https://github.com/capitaomorte/yasnippet/issues/692#issuecomment-218081417","issue_url":"https://api.github.com/repos/capitaomorte/yasnippet/issues/692","id":218081417,"user":{"login":"astoeckley","id":4611759,"avatar_url":"https://avatars.githubusercontent.com/u/4611759?v=3","gravatar_id":"","url":"https://api.github.com/users/astoeckley","html_url":"https://github.com/astoeckley","followers_url":"https://api.github.com/users/astoeckley/followers","following_url":"https://api.github.com/users/astoeckley/following{/other_user}","gists_url":"https://api.github.com/users/astoeckley/gists{/gist_id}","starred_url":"https://api.github.com/users/astoeckley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astoeckley/subscriptions","organizations_url":"https://api.github.com/users/astoeckley/orgs","repos_url":"https://api.github.com/users/astoeckley/repos","events_url":"https://api.github.com/users/astoeckley/events{/privacy}","received_events_url":"https://api.github.com/users/astoeckley/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T07:38:14Z","updated_at":"2016-05-10T07:38:14Z","body":"A lot of useful keymaps you've pointed out. You should list them all in one place the way bbatsov does:\r\n\r\nhttps://github.com/bbatsov/projectile#interactive-commands\r\n\r\nOr perhaps show me where I can find them all?"}}