Move ls-lisp config from init.el to lisp/bandali-dired.el.
authorAmin Bandali <bandali@gnu.org>
Sat, 25 Apr 2020 20:15:13 +0000 (16:15 -0400)
committerAmin Bandali <bandali@gnu.org>
Sat, 25 Apr 2020 20:15:13 +0000 (16:15 -0400)
Also address byte-compiler warning.

init.el
lisp/bandali-dired.el

diff --git a/init.el b/init.el
index bf720ee..a5fdea4 100644 (file)
--- a/init.el
+++ b/init.el
@@ -665,9 +665,6 @@ Make N (default: 1) copies of the current line or region."
       "C-c @" "outline"
       "s-O"   "outline")))
 
-(use-package ls-lisp
-  :custom (ls-lisp-dirs-first t))
-
 (require 'bandali-dired)
 
 (use-package help
index f89676e..c4ab6ff 100644 (file)
 
 ;;; Code:
 
+(use-package ls-lisp
+  :custom (ls-lisp-dirs-first t))
+
 (use-package dired
   :config
   (setq dired-dwim-target t
         dired-listing-switches "-alh"
         ls-lisp-use-insert-directory-program nil)
 
+  (declare-function dired-dwim-target-directory "dired-aux")
+
   ;; easily diff 2 marked files
   ;; https://oremacs.com/2017/03/18/dired-ediff/
   (defun dired-ediff-files ()