Browse Source

Add

master
10sr 6 years ago
parent
commit
4340d8f62d
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      emacs.el

+ 12
- 0
emacs.el View File

@@ -1496,6 +1496,8 @@ ARG is num to show, or defaults to 7."
(with-eval-after-load 'dired (with-eval-after-load 'dired
(define-key dired-mode-map "a" 'dired-list-all-mode)))) (define-key dired-mode-map "a" 'dired-list-all-mode))))


(define-key ctl-x-map "f" 'find-dired)



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; misc funcs ;; misc funcs
@@ -1976,6 +1978,16 @@ use for the buffer. It defaults to \"*recetf-show*\"."
(or (file-name-directory f) (or (file-name-directory f)
"."))))) ".")))))


;;;;;;;;;;;;;;;;;;;;;;

;; It works!
;; (pop-to-buffer (dired-noselect '("." "shrc" "emacs.el")))

(defun my-dired-from-git-ls-files ()
"Dired from git ls-files."
(interactive)
(dired "."))

;; Local Variables: ;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc) ;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)
;; flycheck-checker: emacs-lisp ;; flycheck-checker: emacs-lisp


Loading…
Cancel
Save