{"action":"created","issue":{"url":"https://api.github.com/repos/tumashu/chinese-pyim/issues/15","labels_url":"https://api.github.com/repos/tumashu/chinese-pyim/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/tumashu/chinese-pyim/issues/15/comments","events_url":"https://api.github.com/repos/tumashu/chinese-pyim/issues/15/events","html_url":"https://github.com/tumashu/chinese-pyim/issues/15","id":55012223,"number":15,"title":"添加pause和resume函数","user":{"login":"llcc","id":3996879,"avatar_url":"https://avatars.githubusercontent.com/u/3996879?v=3","gravatar_id":"","url":"https://api.github.com/users/llcc","html_url":"https://github.com/llcc","followers_url":"https://api.github.com/users/llcc/followers","following_url":"https://api.github.com/users/llcc/following{/other_user}","gists_url":"https://api.github.com/users/llcc/gists{/gist_id}","starred_url":"https://api.github.com/users/llcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llcc/subscriptions","organizations_url":"https://api.github.com/users/llcc/orgs","repos_url":"https://api.github.com/users/llcc/repos","events_url":"https://api.github.com/users/llcc/events{/privacy}","received_events_url":"https://api.github.com/users/llcc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-21T12:28:27Z","updated_at":"2015-01-22T02:25:26Z","closed_at":null,"body":"org-mode中使用speed-command时，每次还需要再切换到默认输入法，总感觉还是有点麻烦。\r\n所以希望能添加两个函数和一个hook，比如这样：\r\n```\r\n(add-hook 'pyim-mode-hook \r\n      (lambda ()\r\n              (if (bolp) (looking-at org-heading-regexp)\r\n                     (pause-pyim-mode)\r\n               (resume-pyim-mode)                      \r\n```"},"comment":{"url":"https://api.github.com/repos/tumashu/chinese-pyim/issues/comments/70961519","html_url":"https://github.com/tumashu/chinese-pyim/issues/15#issuecomment-70961519","issue_url":"https://api.github.com/repos/tumashu/chinese-pyim/issues/15","id":70961519,"user":{"login":"tumashu","id":67725,"avatar_url":"https://avatars.githubusercontent.com/u/67725?v=3","gravatar_id":"","url":"https://api.github.com/users/tumashu","html_url":"https://github.com/tumashu","followers_url":"https://api.github.com/users/tumashu/followers","following_url":"https://api.github.com/users/tumashu/following{/other_user}","gists_url":"https://api.github.com/users/tumashu/gists{/gist_id}","starred_url":"https://api.github.com/users/tumashu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tumashu/subscriptions","organizations_url":"https://api.github.com/users/tumashu/orgs","repos_url":"https://api.github.com/users/tumashu/repos","events_url":"https://api.github.com/users/tumashu/events{/privacy}","received_events_url":"https://api.github.com/users/tumashu/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T02:25:26Z","updated_at":"2015-01-22T02:25:26Z","body":"```emacs-lisp\r\n(defvar pyim-org-speed-timer nil)\r\n(defun pyim-org-speed ()\r\n  (interactive)\r\n  (when pyim-org-speed-timer\r\n    (cancel-timer pyim-org-speed-timer))\r\n  (setq pyim-org-speed-timer\r\n        (run-with-timer\r\n         nil 0.1\r\n         '(lambda ()\r\n            (if (and (bolp)\r\n                     (looking-at org-heading-regexp))\r\n                (setq pyim-input-ascii t)\r\n              (setq pyim-input-ascii nil))))))\r\n```\r\n也个比较 diao si 的解决方法，可以暂时试一试。。。。。。。"}}