#author("2022-04-10T11:27:03+09:00","","")
#author("2022-08-07T01:18:20+09:00","","")
[[Computer/Mac/Applications]]

*Cocoa Emacs [#qe47b41c]

**正規表現 [#kb6ba3b2]

 \\G{\([^}]*\)} -> \1
 \\GreekText{\(.+?\)} -> \1

**コンパイル [#h69247a4]

+[[Emacs 23.3>./23.3]]
+[[Emacs 23.4>./23.4]]
+[[Emacs 24.1>./24.1]]
+[[Emacs 24.3>./24.3]]
+[[Emacs 24.4>./24.4]]
+[[Emacs 24.5>./24.5]]
+[[Emacs 26.2>./26.2]]
+[[Emacs 27.1>./27.1]]
+[[Emacs 27.2>./27.2]]
+[[最新版>./git]]

***Mew のインストール [#j9f19640]

Cocoa Emacsに同梱する場合.

${DIR} は /path/to/nextstep.mew-6.5.31 以前で stunnel-4.39 以降を使う場合は mew-ssl.el の書き換えが必要(→[[Computer/OpenSource/Mew]]).

 ./configure --prefix=/${DIR}/Emacs.app/Contents/MacOS \
      --with-emacs=/${DIR}/Emacs.app/Contents/MacOS/Emacs \
      --with-elispdir=/${DIR}/Emacs.app/Contents/Resources/site-lisp/mew \
      --with-etcdir=/${DIR}/Emacs.app/Contents/Resources/etc/mew \
      --localstatedir=/${DIR}/Emacs.app/Contents/Resources/var \
      --infodir=/${DIR}/Emacs.app/Contents/Resources/info \
      --mandir=/${DIR}/Emacs.app/Contents/Resources/man
 $ make && make install-jinfo && make install

***YaTeX のインストール [#x9dfbfa9]

Cocoa Emacsに同梱する場合.

makefileを次のように書き換える.${DIR} は /path/to/nextstep.

 PREFIX = /${DIR}/Emacs.app/Contents/Resources
 EMACS = /${DIR}/Emacs.app/Contents/MacOS/Emacs
 EMACSDIR = ${PREFIX}

 $ make install && make install-info

`Symbol's value as variable is void: last-command-char'のエラーが出る場合は,Emacs.app/Contents/Resources/site-lisp/yatex/-.el中の`last-command-char'を`last-command-event'に書き換える.

***.emacs.el [#h88c1c5e]

Emacs 22 と Emacs 23 を両方使う場合(Carbon Emacs と Cocoa Emacs など).

 ;; ~/.emacs.d/init.el
 (cond
  ((string-match "GNU Emacs 23\\." (emacs-version))
   (load "~/.emacs.d/.emacs23.el"))
  ((string-match "GNU Emacs 22\\." (emacs-version))
   (load "~/.emacs.d/.emacs22.el")))

 ;; ~/.emacs.d/.emacs23.el
 ; Japanese, UTF8
 (set-language-environment 'Japanese)
 (prefer-coding-system 'utf-8)
 
 ; Shift
 (mac-add-key-passed-to-system 'shift)
 
 ; Command-Key and Option-Key
 (setq ns-command-modifier (quote meta))
 (setq ns-alternate-modifier nil)
 
 ; YaTeX-mode
 (setq auto-mode-alist
       (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
 (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
 
 ; Mew
 (load-file "~/.mew.el")
 (autoload 'mew "mew" nil t)
 (autoload 'mew-send' "mew" nil t)

他にフォントの設定が必要.

**リンク [#t283bdf0]

-[[2015年のMac OS XでGNU Emacs:http://yoppa.org/blog/6162.html]]
-[[CarbonからCocoaへ–Snow LeopardでEmacs 23を使う(1) - builder by ZDNet Japan:http://builder.japan.zdnet.com/sp/snow-leopard-09/story/0,3800100196,20409879,00.htm]]
-[[CarbonからCocoaへ–Snow LeopardでEmacs 23を使う(2) - builder by ZDNet Japan:http://builder.japan.zdnet.com/sp/snow-leopard-09/story/0,3800100196,20410292,00.htm]]
-[[Cocoa Emacs のディレクトリ以下に Mew をインストール - 刺身☆ブーメランのはてなダイアリー:http://d.hatena.ne.jp/a666666/20090113/1231810021]]
-[[Macで美しいEmacsを 2 - coirsforce:http://www.croisforce.com/archives/1066]]
-[[CarbonからCocoaへ–Snow LeopardでEmacs 23を使う(3) - builder by ZDNet Japan:http://builder.japan.zdnet.com/sp/snow-leopard-09/story/0,3800100196,20410578,00.htm]]
-http://macemacsjp.sourceforge.jp/index.php?IssueTrack/28
-http://logsoku.com/thread/hibari.2ch.net/mac/1228489176/568
-http://logsoku.com/thread/hibari.2ch.net/mac/1228489176/575
-[[MacEmacsInstall - MacEmacs JP Project -:http://macemacsjp.sourceforge.jp/index.php?MacEmacsInstall]]
-[[CocoaEmacs - MacEmacs JP Project -:http://macemacsjp.sourceforge.jp/index.php?CocoaEmacs]]
-[[過負荷な日々:http://cgi.netlaputa.ne.jp/~kose/diary/?200908a]]
-[[Emacs23 (Cocoa Emacs) 入門から中毒まで : 紹介マニア:http://sakito.jp/emacs/emacs23.html]]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS