Explorar el Código

show user@host in minibuffer

pull/1/head
10sr hace 10 años
padre
commit
eeb947b3fd
Se han modificado 1 ficheros con 11 adiciones y 1 borrados
  1. +11
    -1
      emacs.el

+ 11
- 1
emacs.el Ver fichero

@@ -2056,5 +2056,15 @@ this is test, does not rename files"
;; (defadvice message (before message-for-stupid (arg &rest arg2) activate)
;; (setq arg
;; (concat arg
;; (if (eq nil (string-match "\\. *$" arg)) ".")
;; (if (eq nil
;; (string-match "\\. *$"
;; arg))
;; ".")
;; " Stupid!")))

;; show usename and hostname when prompting something in minibuffer
(defadvice read-from-minibuffer
(before message-for-stupid (prompt &rest args) activate)
(setq prompt
(concat "[" user-login-name "@" system-name "] "
prompt)))

Cargando…
Cancelar
Guardar