Skip to content

Commit a9b06c5

Browse files
committed
Merge remote-tracking branch 'fork/master'
2 parents e6bb190 + 89c71f1 commit a9b06c5

File tree

2 files changed

+28
-44
lines changed

2 files changed

+28
-44
lines changed

INSTALLATION.org

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
**** Linux
1010
Linux 各主要发行版自带 emacs 默认已启用动态模块支持。
1111

12-
**** MacOS
12+
**** macOS
1313
***** emacs-plus 默认启用 ~--with-modules~ 选项,使用 homebrew 安装命令如下:
1414
#+BEGIN_SRC shell
1515
brew tap d12frosted/emacs-plus
@@ -34,19 +34,19 @@ brew install emacs-mac --with-modules
3434

3535
**** ArchLinux/Manjaro
3636

37-
#+begin_src emacs-lisp
37+
#+begin_src bash
3838
sudo pacman -S librime
3939
#+end_src
4040

4141
**** Debian/Ubuntu
4242

43-
#+begin_src emacs-lisp
43+
#+begin_src bash
4444
sudo apt install librime-dev
4545
#+end_src
4646

4747
请注意 ~librime-dev~ 的版本,如果在1.5.3以下,则需要自行编译。
4848

49-
#+begin_src emacs-lisp
49+
#+begin_src bash
5050
sudo apt install git build-essential cmake libboost-all-dev libgoogle-glog-dev libleveldb-dev libmarisa-dev libopencc-dev libyaml-cpp-dev libgtest-dev
5151
git clone https://github.com/rime/librime.git ~/.emacs.d/librime
5252
cd ~/.emacs.d/librime
@@ -56,33 +56,25 @@ brew install emacs-mac --with-modules
5656

5757
**** Fedora
5858

59-
#+begin_src emacs-lisp
59+
#+begin_src bash
6060
sudo dnf install librime-devel emacs-devel
6161
#+end_src
6262

6363
**** openSUSE
6464

65-
#+begin_src emacs-lisp
65+
#+begin_src bash
6666
sudo zypper install librime-devel emacs-el
6767
#+end_src
6868

69-
*** MacOS
70-
1. 先安装[[https://rime.im/download/][鼠须管]],里面有输入法方案。
71-
2. 然后直接下载编译好的librime的Release版本。
72-
3. 如果后续安装了鼠须管的升级版本,请查阅它的[[https://github.com/rime/squirrel/blob/master/CHANGELOG.md][更新日志]],将librime也升级到相匹配的版本。
73-
74-
#+BEGIN_SRC bash
75-
curl -L -O https://github.com/rime/librime/releases/download/1.7.1/rime-1.7.1-osx.zip
76-
unzip rime-1.7.1-osx.zip -d ~/.emacs.d/librime
77-
rm -rf rime-1.7.1-osx.zip
78-
#+END_SRC
79-
80-
如果MacOS Gatekeeper阻止第三方软件运行,可以暂时关闭它:
69+
*** macOS
70+
#+begin_src bash
71+
brew install librime
72+
#+end_src
8173

82-
#+begin_src bash
83-
sudo spctl --master-disable
84-
# later: sudo spctl --master-enable
85-
#+end_src
74+
如果是 Apple Silicon 芯片,设置 ~librime~ 目录
75+
#+begin_src emacs-lisp
76+
(setq rime-librime-root "/opt/homebrew")
77+
#+end_src
8678

8779
*** Windows
8880

@@ -167,8 +159,8 @@ brew install emacs-mac --with-modules
167159
#+END_SRC
168160
#+html: </details>
169161

170-
*** 注意(MacOS
171-
*NOTE* 如果你在 MacOS 上或是选择自己编译 librime (没有放在系统路径中), *必须* 指定 ~rime-librime-root~ 。
162+
*** 注意(macOS
163+
*NOTE* 如果你在 macOS 上或是选择自己编译 librime (没有放在系统路径中), *必须* 指定 ~rime-librime-root~ 。
172164

173165
在 ~:custom~ 中加入如下内容.
174166

INSTALLATION_EN.org

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
emacs-rime will build dynamic module automatically.
88
*** How to get Emacs with dynamic module support?
99

10-
- **Linux**
10+
- Linux
1111

1212
Emacs included in major linux distributions has dynamic module support enabled by default.
1313

14-
- **MacOS**
14+
- macOS
1515

1616
~emacs-plus~ enables dynamic modules support by default. homebrew installation:
1717
#+BEGIN_SRC shell
@@ -69,23 +69,15 @@ Use ~--with-modules~ option.
6969
sudo zypper install librime-devel emacs-el
7070
#+end_src
7171

72-
*** MacOS
73-
1. First of all, make sure you have installed [[https://rime.im/download/][Squirrel]], the MacOS Rime client.
74-
2. Then download the librime release.
75-
3. If you upgrade Squirrel in future, please check its [[https://github.com/rime/squirrel/blob/master/CHANGELOG.md][CHANGELOG]] and upgrade librime to a matching version.
76-
77-
#+BEGIN_SRC bash
78-
curl -L -O https://github.com/rime/librime/releases/download/1.7.1/rime-1.7.1-osx.zip
79-
unzip rime-1.7.1-osx.zip -d ~/.emacs.d/librime
80-
rm -rf rime-1.7.1-osx.zip
81-
#+END_SRC
82-
83-
If the MacOS Gatekeeper blocks the librime executable, you can disable it temporarily with:
72+
*** macOS
73+
#+begin_src bash
74+
brew install librime
75+
#+end_src
8476

85-
#+begin_src bash
86-
sudo spctl --master-disable
87-
# later: sudo spctl --master-enable
88-
#+end_src
77+
If you are using Apple Silicon, set the ~librime~ directory:
78+
#+begin_src emacs-lisp
79+
(setq rime-librime-root "/opt/homebrew")
80+
#+end_src
8981

9082
*** Windows
9183

@@ -159,8 +151,8 @@ Put following in the ~:custom~ section.
159151
(default-input-method "rime"))
160152
#+END_SRC
161153

162-
*** NOTICE (MacOS)
163-
If you are on MacOS or don't have librime in standard path,
154+
*** NOTICE (macOS)
155+
If you are on macOS or don't have librime in standard path,
164156
you *MUST* specify ~rime-librime-root~.
165157

166158
Put following in the ~:custom~ section.

0 commit comments

Comments
 (0)