复制时突出显示的颜色突然从灰色变为黄色。CTL-Y 不再起作用,当我尝试时,我得到:符号的函数定义是 void:x-cut-buffer-or-selection-value。
我的 .emacs 文件
(setq
time-stamp-active t ; do enable time-stamps
time-stamp-line-limit 10 ; check first 10 buffer lines for Time-stamp:
time-stamp-format "%04y-%02m-%02d %02H:%02M:%02S (%u)") ; date format)
(add-hook 'before-save-hook' time-stamp)
(add-hook 'isearch-mode-hook
(lambda ()
(define-key isearch-mode-map "\C-y" 'isearch-yank-line)
(define-key isearch-mode-map "\M-s\C-e" 'isearch-yank-kill)
))
(setq isearch-mode-hook
'(lambda nil
(define-key isearch-mode-map "\C-y" 'isearch-yank-line)
(define-key isearch-mode-map "\C-f" 'isearch-repeat-forward)
(define-key isearch-mode-map "\C-t" 'isearch-toggle-regexp)))
(setq x-select-enable-clipboard t)
(setq interprogram-paste-function 'x-cut-buffer-or-selection-value)
(set-face-attribute 'default nil :font "monospace-20")
(setq lpr-command "gtklp")
(setq buffers-menu-max-size nil)
(setq ps-lpr-command "gtklp")
(setq web-mode-content-types-alist '(("jsx" . "\\.js[x]?\\'")))
(setq css-electric-keys nil)
(add-hook 'MAJORMODE-mode-hook 'my-MAJORMODE-mode-hook)
(defun my-MAJORMODE-mode-hook ()
(ELECTRICMODE-mode 0))
(defun undo-all ()
"Undo all edits."
答案1
替换x-cut-buffer-or-selection-value
为x-get-selection-value
。前者是后者的旧名称。您可能将 Emacs 升级到较新的版本,该版本不再支持该函数的旧名称。