| @@ -1549,6 +1549,16 @@ when SEC is nil, stop auto save if enabled." | |||||
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||||
| ;; misc funcs | ;; misc funcs | ||||
| (defun dir-show (&optional dir) | |||||
| (interactive) | |||||
| (let ((bf (get-buffer-create "*dir show*")) | |||||
| (list-directory-brief-switches "-C")) | |||||
| (with-current-buffer bf | |||||
| (list-directory (or nil | |||||
| default-directory) | |||||
| nil)) | |||||
| )) | |||||
| (defalias 'qcalc 'quick-calc) | (defalias 'qcalc 'quick-calc) | ||||
| (defvar git-command-history nil | (defvar git-command-history nil | ||||
| @@ -1570,7 +1580,7 @@ when SEC is nil, stop auto save if enabled." | |||||
| (point-max))) | (point-max))) | ||||
| ""))) | ""))) | ||||
| (defun my-git-shell-command (cmd) | (defun my-git-shell-command (cmd) | ||||
| "" | |||||
| "Shell like git command interface." | |||||
| (interactive (list (read-shell-command (format "[%s]%s $ git : " | (interactive (list (read-shell-command (format "[%s]%s $ git : " | ||||
| (abbreviate-file-name default-directory) | (abbreviate-file-name default-directory) | ||||
| (my-git-ps1 "[GIT:%s]")) | (my-git-ps1 "[GIT:%s]")) | ||||