Browse Source

Print date in minibuffer instead of mode-line

pull/15/head
10sr 8 years ago
parent
commit
16c8b86d52
1 changed files with 11 additions and 9 deletions
  1. +11
    -9
      emacs.el

+ 11
- 9
emacs.el View File

@@ -534,9 +534,9 @@ IF OK-IF-ALREADY-EXISTS is true force download."
(setq display-time-interval 29) (setq display-time-interval 29)
(setq display-time-day-and-date t) (setq display-time-day-and-date t)
(setq display-time-format "%Y/%m/%d %a %H:%M") (setq display-time-format "%Y/%m/%d %a %H:%M")
(if window-system
(display-time-mode 0)
(display-time-mode 1))
;; (if window-system
;; (display-time-mode 0)
;; (display-time-mode 1))
(when display-time-mode (when display-time-mode
(display-time-update))) (display-time-update)))


@@ -611,23 +611,25 @@ IF OK-IF-ALREADY-EXISTS is true force download."
(:eval (and (fboundp 'git-ps1-mode-get-current) (:eval (and (fboundp 'git-ps1-mode-get-current)
(git-ps1-mode-get-current " [GIT:%s]"))) (git-ps1-mode-get-current " [GIT:%s]")))
" " " "
display-time-string))
(:eval (format-time-string display-time-format))))
(minibuffer-line-mode 1) (minibuffer-line-mode 1)
) )


(when (safe-require-or-eval 'prompt-text) (when (safe-require-or-eval 'prompt-text)


(set-variable 'prompt-text-format (set-variable 'prompt-text-format
`(,(concat "["
`(,(concat ""
user-login-name user-login-name
"@" "@"
(car (split-string system-name (car (split-string system-name
"\\.")) "\\."))
"][")
(:eval (abbreviate-file-name default-directory))
"]"
":")
(:eval (abbreviate-file-name (or buffer-file-name
default-directory)))
(:eval (and (fboundp 'git-ps1-mode-get-current) (:eval (and (fboundp 'git-ps1-mode-get-current)
(git-ps1-mode-get-current "[GIT:%s]")))
(git-ps1-mode-get-current " [GIT:%s]")))
" "
(:eval (format-time-string display-time-format))
"\n" "\n"
(:eval (symbol-name this-command)) (:eval (symbol-name this-command))
": ")) ": "))


Loading…
Cancel
Save