{"action":"closed","issue":{"url":"https://api.github.com/repos/joostkremers/pandoc-mode/issues/32","labels_url":"https://api.github.com/repos/joostkremers/pandoc-mode/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/joostkremers/pandoc-mode/issues/32/comments","events_url":"https://api.github.com/repos/joostkremers/pandoc-mode/issues/32/events","html_url":"https://github.com/joostkremers/pandoc-mode/issues/32","id":69718939,"number":32,"title":"Cannot apply defaults when not visiting a file","user":{"login":"dato","id":73768,"avatar_url":"https://avatars.githubusercontent.com/u/73768?v=3","gravatar_id":"","url":"https://api.github.com/users/dato","html_url":"https://github.com/dato","followers_url":"https://api.github.com/users/dato/followers","following_url":"https://api.github.com/users/dato/following{/other_user}","gists_url":"https://api.github.com/users/dato/gists{/gist_id}","starred_url":"https://api.github.com/users/dato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dato/subscriptions","organizations_url":"https://api.github.com/users/dato/orgs","repos_url":"https://api.github.com/users/dato/repos","events_url":"https://api.github.com/users/dato/events{/privacy}","received_events_url":"https://api.github.com/users/dato/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-21T01:37:29Z","updated_at":"2015-04-22T23:04:23Z","closed_at":"2015-04-22T23:04:23Z","body":"I have a default settings file that sets the output format to HTML. It lives in `~/.emacs.d/pandoc-mode/default.pandoc`:\r\n\r\n```elisp\r\n((read . \"markdown\")\r\n (write . \"html\")\r\n (standalone . t))\r\n```\r\nI also have in my init file:\r\n\r\n```elisp\r\n(add-hook 'pandoc-mode-hook 'pandoc-load-default-settings)\r\n```\r\n\r\nIt would be nice if this file would be loaded when creating a new Markdown buffer without an associated file. As in:\r\n\r\n```elisp\r\n(defun write-markdown ()\r\n  (switch-to-buffer (generate-new-buffer-name \"markdown\"))\r\n  (markdown-mode)\r\n  (pandoc-mode))\r\n```\r\n\r\nAt the moment, I can get what I want by adding a call to:\r\n\r\n```elisp\r\n  (pandoc--load-settings-for-file\r\n   (expand-file-name \"~/.emacs.d/pandoc/foo.md\") \"default\" t)\r\n```\r\n\r\nThanks for considering!\r\n"}}