{"action":"created","issue":{"url":"https://api.github.com/repos/fxbois/web-mode/issues/483","labels_url":"https://api.github.com/repos/fxbois/web-mode/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/fxbois/web-mode/issues/483/comments","events_url":"https://api.github.com/repos/fxbois/web-mode/issues/483/events","html_url":"https://github.com/fxbois/web-mode/issues/483","id":67931265,"number":483,"title":"Cannot make indent offset settings works","user":{"login":"kuanyui","id":1370070,"avatar_url":"https://avatars.githubusercontent.com/u/1370070?v=3","gravatar_id":"","url":"https://api.github.com/users/kuanyui","html_url":"https://github.com/kuanyui","followers_url":"https://api.github.com/users/kuanyui/followers","following_url":"https://api.github.com/users/kuanyui/following{/other_user}","gists_url":"https://api.github.com/users/kuanyui/gists{/gist_id}","starred_url":"https://api.github.com/users/kuanyui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuanyui/subscriptions","organizations_url":"https://api.github.com/users/kuanyui/orgs","repos_url":"https://api.github.com/users/kuanyui/repos","events_url":"https://api.github.com/users/kuanyui/events{/privacy}","received_events_url":"https://api.github.com/users/kuanyui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-12T16:14:08Z","updated_at":"2015-04-12T17:43:14Z","closed_at":null,"body":"I've tried:\r\n1:\r\n```lisp\r\n(defun my-web-mode-hook ()\r\n  \"Hooks for Web mode.\"\r\n  (setq web-mode-markup-indent-offset 2)\r\n  (setq web-mode-css-indent-offset 2)\r\n  (setq web-mode-code-indent-offset 2)\t; js, php...\r\n  )\r\n(add-hook 'web-mode-hook 'my-web-mode-hook)\r\n```\r\n\r\n2:\r\n```lisp\r\n(setq-default web-mode-markup-indent-offset 2)\r\n(setq-default web-mode-css-indent-offset 2)\r\n(setq-default web-mode-code-indent-offset 2)\t; js, php...\r\n(setq-default indent-tabs-mode nil)\r\n```\r\n\r\n3: `Custom` the variables\r\n\r\nBut these three solutions **just cannot work at all** after upgrading to latest  20150408.819 web-mode, even after restarting my Emacs. "},"comment":{"url":"https://api.github.com/repos/fxbois/web-mode/issues/comments/92094285","html_url":"https://github.com/fxbois/web-mode/issues/483#issuecomment-92094285","issue_url":"https://api.github.com/repos/fxbois/web-mode/issues/483","id":92094285,"user":{"login":"fxbois","id":959622,"avatar_url":"https://avatars.githubusercontent.com/u/959622?v=3","gravatar_id":"","url":"https://api.github.com/users/fxbois","html_url":"https://github.com/fxbois","followers_url":"https://api.github.com/users/fxbois/followers","following_url":"https://api.github.com/users/fxbois/following{/other_user}","gists_url":"https://api.github.com/users/fxbois/gists{/gist_id}","starred_url":"https://api.github.com/users/fxbois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxbois/subscriptions","organizations_url":"https://api.github.com/users/fxbois/orgs","repos_url":"https://api.github.com/users/fxbois/repos","events_url":"https://api.github.com/users/fxbois/events{/privacy}","received_events_url":"https://api.github.com/users/fxbois/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T17:43:14Z","updated_at":"2015-04-12T17:43:14Z","body":"@kuanyui please look at http://web-mode.org"}}