markdown 在OS X上使用XWidget Patch构建Emacs 27

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 在OS X上使用XWidget Patch构建Emacs 27相关的知识,希望对你有一定的参考价值。

# Steps

1. Get the webkit patch for emacs 27 (`0_all_webkit.patch`) here: 
https://gist.github.com/fuxialexander/0231e994fd27be6dd87db60339238813

 - https://gist.github.com/orther/8c04af954bf746d7a020be75614a527c (gist fork, old don't use)

2. Clone Emacs repo locally: `git clone git@github.com:emacs-mirror/emacs.git emacs-mirror`

3. Create branch for patch `git checkout -b nsxwidget-patch`

4. Apply Patch: `git am --signoff < 0_all_webkit.patch`

5. Build:
```
make clean
make
./configure --prefix=$HOME/work/emacs-mirror --with-xwidgets
make install
```

6. Locate `Emacs.app` and `emacsclient`:
```
ln -s /Users/brandon/work/code/emacs-mirror/nextstep/Emacs.app/Contents/MacOS/Emacs /usr/local/bin/emacs
ln -s /Users/brandon/work/code/emacs-mirror/nextstep/Emacs.app/Contents/MacOS/bin/emacsclient /usr/local/bin/emacsclient
```


### Notes
May need to install texinfo with `brew install texinfo` and export the PATH and LDFLAGS that brew prints. Mine were:
```sh
export PATH=/usr/local/opt/texinfo/bin:$PATH
export LDFLAGS=-L/usr/local/opt/texinfo/lib
```

Emacs macOS Install Guide: https://github.com/emacs-mirror/emacs/blob/cab400aacde04e4455caea4a6525b26ca7909850/INSTALL#L209

以上是关于markdown 在OS X上使用XWidget Patch构建Emacs 27的主要内容,如果未能解决你的问题,请参考以下文章

markdown 在Mac OS X上安装Go

markdown 在OS X上创建一个快乐的Git环境

markdown 在MAC OS X上显示和隐藏文件和文件夹

markdown 如何创建将在Linux上运行的OS X El Capitan VM

markdown 如果你已经在Mac OS X或Linuxbrew上通过Homebrew安装了Node,那么如何修复npm的说明

markdown 有关如何在Mac OS X上安装Fish shell的说明,包括Oh My Fish!。还包括几个有用的功能。