{"action":"created","issue":{"url":"https://api.github.com/repos/Malabarba/aggressive-indent-mode/issues/95","repository_url":"https://api.github.com/repos/Malabarba/aggressive-indent-mode","labels_url":"https://api.github.com/repos/Malabarba/aggressive-indent-mode/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/Malabarba/aggressive-indent-mode/issues/95/comments","events_url":"https://api.github.com/repos/Malabarba/aggressive-indent-mode/issues/95/events","html_url":"https://github.com/Malabarba/aggressive-indent-mode/issues/95","id":168267181,"number":95,"title":"[feature requrest] only auto indent when leaving the current line","user":{"login":"TLINDEN","id":1322812,"avatar_url":"https://avatars.githubusercontent.com/u/1322812?v=3","gravatar_id":"","url":"https://api.github.com/users/TLINDEN","html_url":"https://github.com/TLINDEN","followers_url":"https://api.github.com/users/TLINDEN/followers","following_url":"https://api.github.com/users/TLINDEN/following{/other_user}","gists_url":"https://api.github.com/users/TLINDEN/gists{/gist_id}","starred_url":"https://api.github.com/users/TLINDEN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TLINDEN/subscriptions","organizations_url":"https://api.github.com/users/TLINDEN/orgs","repos_url":"https://api.github.com/users/TLINDEN/repos","events_url":"https://api.github.com/users/TLINDEN/events{/privacy}","received_events_url":"https://api.github.com/users/TLINDEN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-29T07:32:22Z","updated_at":"2016-10-12T19:43:47Z","closed_at":null,"body":"Hello,\r\n\r\nit would be good to have a flag to enable such a feature. I do often have the problem, that aggressive-indent-mode starts indenting stuff while I'm writing code in a line which is not finished yet.\r\n\r\nFor example:\r\n`if(` \r\n\r\nThe mode now indents everything after this. However, when I'm done the line looks like this:\r\n`if($blah){return}`\r\n\r\nSo, no re-indent would have been required.\r\n\r\nIf the mode would only try to re-indent after I leave the line (ie. pressing RET) it would be best (for me, at least).\r\n\r\n\r\nThanks,\r\nTom\r\n"},"comment":{"url":"https://api.github.com/repos/Malabarba/aggressive-indent-mode/issues/comments/253317298","html_url":"https://github.com/Malabarba/aggressive-indent-mode/issues/95#issuecomment-253317298","issue_url":"https://api.github.com/repos/Malabarba/aggressive-indent-mode/issues/95","id":253317298,"user":{"login":"Malabarba","id":453029,"avatar_url":"https://avatars.githubusercontent.com/u/453029?v=3","gravatar_id":"","url":"https://api.github.com/users/Malabarba","html_url":"https://github.com/Malabarba","followers_url":"https://api.github.com/users/Malabarba/followers","following_url":"https://api.github.com/users/Malabarba/following{/other_user}","gists_url":"https://api.github.com/users/Malabarba/gists{/gist_id}","starred_url":"https://api.github.com/users/Malabarba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Malabarba/subscriptions","organizations_url":"https://api.github.com/users/Malabarba/orgs","repos_url":"https://api.github.com/users/Malabarba/repos","events_url":"https://api.github.com/users/Malabarba/events{/privacy}","received_events_url":"https://api.github.com/users/Malabarba/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T19:43:47Z","updated_at":"2016-10-12T19:43:47Z","body":"You can avoid indenting in that situation with the `dont-indent-if` variable. Try the following:\r\n\r\n\r\n    (let ((line (thing-at-point 'line)))\r\n      (and (stringp line)\r\n           (string-match \"\\\\bif *([^)]*$\" line)))"}}
{"actor":{"display_login":"Malabarba"}}