Emacs:俄语是或否-p?

标签 emacs

我正在使用

(fset 'yes-or-no-p 'y-or-n-p) ;; Make all "yes or no" prompts show "y or n" instead.

回答是或现在的问题。有没有办法附加俄罗斯类似物作为可能的答案?那么 y 和俄文字母 н 将代表"is",而 n 和 т 将代表“否”?

最佳答案

根据y-or-n-p文件

Ask user a "y or n" question. Return t if answer is "y". Takes one argument, which is the string to display to ask the question. It should end in a space; y-or-n-p' adds(y or n) ' to it. No confirmation of the answer is requested; a single character is enough. Also accepts Space to mean yes, or Delete to mean no. (Actually, it uses the bindings in query-replace-map'; see the documentation of that variable for more information. In this case, the useful bindings areact', skip',recenter', and `quit'.)



所以你需要给 query-replace-map 添加 key
像这样的东西
;; use the Russian 'н' (which is on the same
;; physical key as 'y') or 'т' (which shares
;; the key with 'n') in query-replace-map
(define-key query-replace-map "н" 'act)
(define-key query-replace-map "т" 'skip)

关于Emacs:俄语是或否-p?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9032927/

相关文章:

emacs - 当 cdlatex 打开时,输入 auctex 和 _ 的好方法是什么?

Emacs:使用功能键 (F19) 作为元

emacs - 如何防止 Gnome 拦截 Alt+Shift+~ 键?

emacs - Emacs 中 § 符号的键绑定(bind)

emacs - 如何在emacs中查看文件的编码?

emacs - 如何让 emacs 在字体锁定模式下呈现数学组合字符?

使用内置 javascript 模式对 var block 进行 JavaScript 缩进

html - 带有复选框的组织模式 html 导出

git submodule update --init 安装 dot-emacs 文件时出错

emacs - 拆分窗口时控制 Emacs 行为