From 93afb934d4b7cc74b02c20bdcd67fe5382406dac Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Thu, 5 Sep 2019 04:57:34 +0800 Subject: [PATCH 1/2] PRF @lujun9972 --- translated/tech/20181113 Eldoc Goes Global.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/translated/tech/20181113 Eldoc Goes Global.md b/translated/tech/20181113 Eldoc Goes Global.md index 8357841be1..2842c61046 100644 --- a/translated/tech/20181113 Eldoc Goes Global.md +++ b/translated/tech/20181113 Eldoc Goes Global.md @@ -1,15 +1,17 @@ [#]: collector: (lujun9972) [#]: translator: (lujun9972) -[#]: reviewer: ( ) +[#]: reviewer: (wxy) [#]: publisher: ( ) [#]: url: ( ) [#]: subject: (Eldoc Goes Global) [#]: via: (https://emacsredux.com/blog/2018/11/13/eldoc-goes-global/) [#]: author: (Bozhidar Batsov https://emacsredux.com) -Eldoc 全局化了 +Emacs:Eldoc 全局化了 ====== +![](https://img.linux.net.cn/data/attachment/album/201909/05/045702d99v9vv4xy0aybmm.jpg) + 最近我注意到 Emacs 25.1 增加了一个名为 `global-eldoc-mode` 的模式,它是流行的 `eldoc-mode` 的一个全局化的变体。而且与 `eldoc-mode` 不同的是,`global-eldoc-mode` 默认是开启的! 这意味着你可以删除 Emacs 配置中为主模式开启 `eldoc-mode` 的代码了: @@ -22,11 +24,12 @@ Eldoc 全局化了 (add-hook 'cider-repl-mode-hook #'eldoc-mode) ``` -[有人说 ][1] `global-eldoc-mode` 在某些不支持的模式中会有性能问题。我自己重未遇到过,但若你像禁用它则只需要这样: +[有人说][1] `global-eldoc-mode` 在某些不支持的模式中会有性能问题。我自己从未遇到过,但若你像禁用它则只需要这样: ``` (global-eldoc-mode -1) ``` + 现在是时候清理我的配置了!删除代码就是这么爽! -------------------------------------------------------------------------------- @@ -36,7 +39,7 @@ via: https://emacsredux.com/blog/2018/11/13/eldoc-goes-global/ 作者:[Bozhidar Batsov][a] 选题:[lujun9972][b] 译者:[lujun9972](https://github.com/lujun9972) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 From b11ed4a3a2f3090348dceeb099baf529c1871aca Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Thu, 5 Sep 2019 04:58:55 +0800 Subject: [PATCH 2/2] PUB @lujun9972 https://linux.cn/article-11306-1.html --- {translated/tech => published}/20181113 Eldoc Goes Global.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename {translated/tech => published}/20181113 Eldoc Goes Global.md (95%) diff --git a/translated/tech/20181113 Eldoc Goes Global.md b/published/20181113 Eldoc Goes Global.md similarity index 95% rename from translated/tech/20181113 Eldoc Goes Global.md rename to published/20181113 Eldoc Goes Global.md index 2842c61046..4714f966a1 100644 --- a/translated/tech/20181113 Eldoc Goes Global.md +++ b/published/20181113 Eldoc Goes Global.md @@ -1,8 +1,8 @@ [#]: collector: (lujun9972) [#]: translator: (lujun9972) [#]: reviewer: (wxy) -[#]: publisher: ( ) -[#]: url: ( ) +[#]: publisher: (wxy) +[#]: url: (https://linux.cn/article-11306-1.html) [#]: subject: (Eldoc Goes Global) [#]: via: (https://emacsredux.com/blog/2018/11/13/eldoc-goes-global/) [#]: author: (Bozhidar Batsov https://emacsredux.com)