{"id":1575,"date":"2021-03-17T14:19:24","date_gmt":"2021-03-17T05:19:24","guid":{"rendered":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/?p=1575"},"modified":"2021-03-20T11:34:51","modified_gmt":"2021-03-20T02:34:51","slug":"emacs-%e3%81%a7%e3%82%b9%e3%83%9a%e3%83%ab%e3%83%81%e3%82%a7%e3%83%83%e3%82%af","status":"publish","type":"post","link":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1575\/","title":{"rendered":"Emacs \u3067\u30b9\u30da\u30eb\u30c1\u30a7\u30c3\u30af"},"content":{"rendered":"<h3>Windows<\/h3>\n<p>Emacs \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3068\u3057\u3066\u3002<a href=\"https:\/\/ftp.gnu.org\/gnu\/aspell\/w32\/\">Windows \u7248 aspell \u3082\u63a2\u305b\u3070\u3042\u308b<\/a>\u304c\uff0c\u3044\u308c\u3066\u307f\u305f\u3068\u3053\u308d\uff0c\u30d0\u30fc\u30b8\u30e7\u30f3 0.6 \u4ee5\u4e0a\u3058\u3083\u306a\u3044\u3068Emacs \u304b\u3089\u6587\u53e5\u3092\u8a00\u308f\u308c\u3066\u52d5\u4f5c\u3057\u306a\u3044\u306e\u3067\uff0c hunspell \u3092\u4f7f\u3046\u3002<\/p>\n<p><code>choco install hunspell<\/code> \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3067\u3042\u308b\u304c\uff0c\u8f9e\u66f8\u306e\u8a2d\u5b9a\u304c\u308f\u304b\u3089\u305a\uff0c\u3053\u3053\u3067\u306f\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/gromnitsky\/hunspell-windows\/releases\/\">Releases \u00b7 gromnitsky\/hunspell-windows \u00b7 GitHub<\/a><\/li>\n<\/ul>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f zip \u30d5\u30a1\u30a4\u30eb\u3092\uff0c<code>mkdir C:\\hunspell<\/code> \u3057\u3066\u3053\u306e\u4e2d\u306b\u5c55\u958b\u3002<\/p>\n<p>init.el (.emacs) \u306b<\/p>\n<pre>;;; hunspell \r\n(add-to-list 'exec-path \"C:\/hunspell\/bin\") \r\n(setq-default ispell-program-name \"hunspell\") \r\n(setenv \"DICTIONARY\" \"en_US\") \r\n(setq ispell-really-hunspell t) \r\n(with-eval-after-load \"ispell\" \r\n  (add-to-list 'ispell-skip-region-alist '(\"[^\\000-\\377]+\"))) \r\n(add-hook 'latex-mode-hook 'flyspell-mode)<\/pre>\n<ul>\n<li>\u53c2\u8003\uff1a<a href=\"http:\/\/home.hatanaka.info\/article\/474728666.html\">Windows\u4e0a\u306e\u300cGNU Emacs\u300d\u3067\u30b9\u30da\u30eb\u30c1\u30a7\u30c3\u30af\u3092\u5229\u7528\u3059\u308b: Hatakazu&#8217;s weBLOG<\/a><\/li>\n<\/ul>\n<h3>Ubuntu<\/h3>\n<p>Emacs \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3068\u3057\u3066\uff0c\u3055\u3089\u306b<\/p>\n<pre>sudo apt install aspell aspell-en<\/pre>\n<h3>macOS<\/h3>\n<p>Emacs \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3068\u3057\u3066\uff0c\u3055\u3089\u306b<\/p>\n<pre>brew install aspell<\/pre>\n<h3>init.el (.emacs) \u3078\u306e\u8ffd\u8a18\u5185\u5bb9<\/h3>\n<p>Ubuntu, macOS \u3069\u3061\u3089\u306e\u5834\u5408\u3082\uff0c\uff08HEROIC \u3067\u306f <code>site-start.el<\/code> \u306b\u66f8\u3044\u3066\u3044\u308b\u304c\uff09<code>init.el<\/code> (20\u4e16\u7d00\u7684\u4eba\u9593\u306e\u79c1\u306b\u306f <code>.emacs<\/code>) \u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304f\u3002<\/p>\n<pre>(setq-default ispell-program-name \"aspell\")\r\n(with-eval-after-load \"ispell\"\r\n  (setq ispell-local-dictionary \"en_US\")\r\n  (add-to-list 'ispell-skip-region-alist '(\"[^\\000-\\377]+\")))\r\n(add-hook 'latex-mode-hook 'flyspell-mode)<\/pre>\n<p>AUC-TeX \u30e2\u30fc\u30c9\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u5ff5\u982d\u306b\u304a\u3044\u3066\u3044\u308b\u306e\u3067\uff0c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306f\uff0c\u300cCommand\u300d\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300cSpell\u300d\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3067\uff0c\uff08\u65e5\u672c\u8a9e\u3092\u907f\u3051\u3066\uff09LaTeX \u6587\u7ae0\u306e\u82f1\u8a9e\u90e8\u5206\u306e\u30b9\u30da\u30eb\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Emacs \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3068\u3057\u3066\u3002Win <a href=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1575\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[10,7,12,4],"tags":[],"class_list":["post-1575","post","type-post","status-publish","format-standard","hentry","category-emacs","category-macos","category-ubuntu","category-windows"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/comments?post=1575"}],"version-history":[{"count":9,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1575\/revisions"}],"predecessor-version":[{"id":1596,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1575\/revisions\/1596"}],"wp:attachment":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/media?parent=1575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/categories?post=1575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/tags?post=1575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}