{"id":830,"date":"2019-07-12T13:14:47","date_gmt":"2019-07-12T04:14:47","guid":{"rendered":"https:\/\/www.kwonline.org\/memo2\/?p=830"},"modified":"2022-05-07T18:15:44","modified_gmt":"2022-05-07T09:15:44","slug":"emacs-mozc-japanese-input-method","status":"publish","type":"post","link":"https:\/\/www.kwonline.org\/memo2\/2019\/07\/12\/emacs-mozc-japanese-input-method\/","title":{"rendered":"Xubuntu: Emacs\u4e0a\u3067emacs-mozc\u3092\u4f7f\u3063\u3066\u65e5\u672c\u8a9e\u5165\u529b"},"content":{"rendered":"<p>Emacs\u4e0a\u3067emacs-mozc\u4f7f\u3063\u305f\u3089\u65e5\u672c\u8a9e\u5165\u529b\u304c\u5feb\u9069\u306a\u306e\u3067\u30e1\u30e2<\/p>\n<p>\u307e\u305a\u306fapt\u3067emacs-mozc-bin\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo apt install emacs-mozc-bin\r\n<\/pre>\n<p>~\/.emacs.d\/init.el \u3092\u7de8\u96c6\u3057\u3066package\u3092\u6709\u52b9\u5316\u3059\u308b<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n(require 'package)\r\n(add-to-list 'package-archives '(&quot;melpa&quot; . &quot;https:\/\/melpa.org\/packages\/&quot;))\r\n(add-to-list 'package-archives '(&quot;melpa-stable&quot; . &quot;https:\/\/stable.melpa.org\/packages\/&quot;))\r\n(add-to-list 'package-archives  '(&quot;marmalade&quot; . &quot;https:\/\/marmalade-repo.org\/packages\/&quot;))\r\n(add-to-list 'package-archives '(&quot;org&quot; . &quot;http:\/\/orgmode.org\/elpa\/&quot;))\r\n(package-initialize)\r\n<\/pre>\n<p>Emacs\u3092\u8d77\u52d5\u3057\u3066\u3001M-x package-list-packages \u3092\u958b\u304d\u3001\u300cmozc\u300d\u3092\u9078\u3093\u3067\u300cInstall\u300d\u3059\u308b<\/p>\n<p>mozc\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u518d\u3073 ~\/emacs.d\/init.el \u3092\u7de8\u96c6\u3057\u3066mozc\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6709\u52b9\u5316\u3059\u308b<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n(load-file &quot;~\/.emacs.d\/elpa\/path-to-mozc\/mozc.el&quot;)\r\n(set-language-environment &quot;Japanese&quot;)\r\n(setq default-input-method &quot;japanese-mozc&quot;)\r\n(prefer-coding-system 'utf-8)\r\n<\/pre>\n<p>\u4e0a\u8a18\u306epath-to-mozc\u306f\u5b9f\u969b\u306emozc.el\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<p>\u3053\u308c\u3067OK.<br \/>\nEmacs\u8d77\u52d5\u5f8c Ctrl + \\ \u3067\u65e5\u672c\u8a9eIM\u3092\u30aa\u30f3\u30aa\u30d5\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Emacs\u4e0a\u3067emacs-mozc\u4f7f\u3063\u305f\u3089\u65e5\u672c\u8a9e\u5165\u529b\u304c\u5feb\u9069\u306a\u306e\u3067\u30e1\u30e2 \u307e\u305a\u306fapt\u3067emacs-mozc-bin\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb $ sudo apt install emacs-mozc-bin ~\/.emacs.d\/i [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8],"tags":[],"class_list":["post-830","post","type-post","status-publish","format-standard","hentry","category-emacs","category-linux"],"_links":{"self":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/comments?post=830"}],"version-history":[{"count":5,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/830\/revisions"}],"predecessor-version":[{"id":1433,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/830\/revisions\/1433"}],"wp:attachment":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/media?parent=830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/categories?post=830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/tags?post=830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}