我正在使用
(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 inquery-replace-map'; see the documentation of that variable for more information. In this case, the useful bindings are
act',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/