tutti i buffer Non ho usato, come gratta e vinci, i messaggi e completamenti, scompigliato con il mio flusso di lavoro.
Sono riuscito a liberarmene completamente, senza rompere emacs in alcun modo.
Posted prima here, e incollato muggito:
Posto questo nel vostro.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)
Come faccio a specificare un carattere jolly quando chiedo tampone-stack di ignorare sempre/untrack alcuni buffer? per esempio. se voglio chiedergli di aggiungere alla lista di untrack * .html come faccio? – incandescentman