File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ environment variable \"$MINEMACS_IGNORE_USER_CONFIG\".")
99
99
(if (file-directory-p " ~/.minemacs.d/" ) " ~/.minemacs.d/" (concat minemacs-root-dir " user-config/" ))))
100
100
" MinEmacs user customization directory." )
101
101
102
+ (defconst minemacs-started-with-extra-args-p (and (cdr command-line-args) t ) " Has Emacs been started with extras arguments? like a file name or so." )
102
103
(defconst os/linux (eq system-type 'gnu/linux ) " Non-nil on GNU/Linux systems." )
103
104
(defconst os/bsd (and (memq system-type '(berkeley-unix gnu/kfreebsd)) t ) " Non-nil on BSD systems." )
104
105
(defconst os/win (and (memq system-type '(cygwin windows-nt ms-dos)) t ) " Non-nil on Windows systems." )
Original file line number Diff line number Diff line change 8
8
9
9
; ;; Code:
10
10
11
- (defconst minemacs-started-with-directory-p
12
- (let ((args (cdr command-line-args))) (cl-some #'file-directory-p args)))
13
-
14
11
(use-package dirvish
15
12
:straight t
16
- :demand minemacs-started-with-directory -p
13
+ :demand minemacs-started-with-extra-args -p
17
14
:custom
18
15
(dirvish-attributes '(subtree-state nerd-icons file-size vc-state git-msg))
19
16
(dirvish-cache-dir (+directory-ensure minemacs-cache-dir " dirvish/" ))
You can’t perform that action at this time.
0 commit comments