remove unnecessary dotfile functions and hooks
This commit is contained in:
parent
b7046de2ca
commit
0d7d107bbf
2 changed files with 0 additions and 17 deletions
|
@ -14,18 +14,3 @@
|
|||
(not (file-remote-p default-directory))
|
||||
(locate-dominating-file "." ".git"))
|
||||
(dired-git-info-mode 1)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +dired-dotfiles-hide ()
|
||||
(set (make-local-variable '+dired-dotfiles-show-p) nil)
|
||||
(dired-mark-files-regexp "^\\\.")
|
||||
(dired-do-kill-lines))
|
||||
|
||||
;;;###autoload
|
||||
(defun +dired/dotfiles-toggle ()
|
||||
(interactive)
|
||||
(when (equal major-mode 'dired-mode)
|
||||
(if (or (not (boundp '+dired-dotfiles-show-p)) +dired-dotfiles-show-p) ; if currently showing
|
||||
(+dired-dotfiles-hide)
|
||||
(progn (revert-buffer) ; otherwise just revert to re-show
|
||||
(set (make-local-variable '+dired-dotfiles-show-p) t)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue