Tất cả các bộ đệm Tôi không sử dụng, chẳng hạn như cào, tin nhắn và hoàn tất, điều sai lầm với công việc của tôi.
Tôi đã quản lý để loại bỏ hoàn toàn chúng, mà không phá vỡ các emac theo bất kỳ cách nào.
Đã đăng đầu tiên here và dán dưới đây:
Đặt mã này vào của bạn.emacs:
;; Makes *scratch* empty.
(setq initial-scratch-message "")
;; Removes *scratch* from buffer after the mode has been set.
(defun remove-scratch-buffer()
(if (get-buffer "*scratch*")
(kill-buffer "*scratch*")))
(add-hook 'after-change-major-mode-hook 'remove-scratch-buffer)
;; Removes *messages* from the buffer.
(setq-default message-log-max nil)
(kill-buffer "*Messages*")
;; Removes *Completions* from buffer after you've opened a file.
(add-hook 'minibuffer-exit-hook
'(lambda()
(let ((buffer "*Completions*"))
(and (get-buffer buffer)
(kill-buffer buffer)))))
;; Don't show *Buffer list* when opening multiple files at the same time.
(setq inhibit-startup-buffer-menu t)
;; Show only one active window when opening multiple files at the same time.
(add-hook 'window-setup-hook 'delete-other-windows)
Bonus:
;; No more typing the whole yes or no. Just y or n will do.
(fset 'yes-or-no-p 'y-or-n-p)
Làm thế nào để xác định một ký tự đại diện khi tôi yêu cầu đệm-stack để luôn luôn bỏ qua/bộ đệm nhất định untrack? ví dụ. nếu tôi muốn yêu cầu nó thêm vào danh sách không đúng * .html thì làm cách nào để làm điều đó? – incandescentman